Skip to content

Commit 007ef52

Browse files
Nathan WilliamsDavid Woodhouse
authored andcommitted
solos-pci: Fix leak of skb received for unknown vcc
... and ensure that the next skb is set up for RX in the DMA case. Signed-off-by: Nathan Williams <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
1 parent d71ffeb commit 007ef52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/atm/solos-pci.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,8 @@ void solos_bh(unsigned long card_arg)
710710
dev_warn(&card->dev->dev, "Received packet for unknown VPI.VCI %d.%d on port %d\n",
711711
le16_to_cpu(header->vpi), le16_to_cpu(header->vci),
712712
port);
713-
continue;
713+
dev_kfree_skb_any(skb);
714+
break;
714715
}
715716
atm_charge(vcc, skb->truesize);
716717
vcc->push(vcc, skb);

0 commit comments

Comments
 (0)