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>
This commit is contained in:
parent
d71ffeb123
commit
007ef52be1
|
@ -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",
|
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),
|
le16_to_cpu(header->vpi), le16_to_cpu(header->vci),
|
||||||
port);
|
port);
|
||||||
continue;
|
dev_kfree_skb_any(skb);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
atm_charge(vcc, skb->truesize);
|
atm_charge(vcc, skb->truesize);
|
||||||
vcc->push(vcc, skb);
|
vcc->push(vcc, skb);
|
||||||
|
|
Loading…
Reference in New Issue