aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorNathan Williams <nathan@traverse.com.au>2012-11-27 01:34:09 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-12-01 19:05:18 -0500
commit007ef52be171b9eee6f4099d3e5706e8068d31ef (patch)
treec646a61c3b215a3f8149f192fc86ee583667e5be /drivers
parentd71ffeb12378243babb2227acfed0c8d263e237e (diff)
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')
-rw-r--r--drivers/atm/solos-pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c
index 026bdc1dfcc6..f0863b443762 100644
--- a/drivers/atm/solos-pci.c
+++ b/drivers/atm/solos-pci.c
@@ -710,7 +710,8 @@ void solos_bh(unsigned long card_arg)
710 dev_warn(&card->dev->dev, "Received packet for unknown VPI.VCI %d.%d on port %d\n", 710 dev_warn(&card->dev->dev, "Received packet for unknown VPI.VCI %d.%d on port %d\n",
711 le16_to_cpu(header->vpi), le16_to_cpu(header->vci), 711 le16_to_cpu(header->vpi), le16_to_cpu(header->vci),
712 port); 712 port);
713 continue; 713 dev_kfree_skb_any(skb);
714 break;
714 } 715 }
715 atm_charge(vcc, skb->truesize); 716 atm_charge(vcc, skb->truesize);
716 vcc->push(vcc, skb); 717 vcc->push(vcc, skb);