solos-pci: Fix leak of skb received for unknown vcc
authorNathan Williams <nathan@traverse.com.au>
Tue, 27 Nov 2012 06:34:09 +0000 (17:34 +1100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 2 Dec 2012 00:05:18 +0000 (00:05 +0000)
... and ensure that the next skb is set up for RX in the DMA case.

Signed-off-by: Nathan Williams <nathan@traverse.com.au>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/atm/solos-pci.c

index 026bdc1dfcc616ad253f243ff5b94f66944e8c6f..f0863b443762f6aafeddab13da471a58ce7629b1 100644 (file)
@@ -710,7 +710,8 @@ void solos_bh(unsigned long card_arg)
                                                dev_warn(&card->dev->dev, "Received packet for unknown VPI.VCI %d.%d on port %d\n",
                                                         le16_to_cpu(header->vpi), le16_to_cpu(header->vci),
                                                         port);
-                                       continue;
+                                       dev_kfree_skb_any(skb);
+                                       break;
                                }
                                atm_charge(vcc, skb->truesize);
                                vcc->push(vcc, skb);