diff options
author | Nathan Williams <nathan@traverse.com.au> | 2012-11-27 17:34:09 +1100 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-12-02 00:05:18 +0000 |
commit | 007ef52be171b9eee6f4099d3e5706e8068d31ef (patch) | |
tree | c646a61c3b215a3f8149f192fc86ee583667e5be /drivers/atm | |
parent | d71ffeb12378243babb2227acfed0c8d263e237e (diff) | |
download | linux-3.10-007ef52be171b9eee6f4099d3e5706e8068d31ef.tar.gz linux-3.10-007ef52be171b9eee6f4099d3e5706e8068d31ef.tar.bz2 linux-3.10-007ef52be171b9eee6f4099d3e5706e8068d31ef.zip |
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 <nathan@traverse.com.au>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/atm')
-rw-r--r-- | drivers/atm/solos-pci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c index 026bdc1dfcc..f0863b44376 100644 --- a/drivers/atm/solos-pci.c +++ b/drivers/atm/solos-pci.c @@ -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); |