Skip to content

Commit e6827d1

Browse files
Navidemdavem330
authored andcommitted
cxgb4: add missing release on skb in uld_send()
In the implementation of uld_send(), the skb is consumed on all execution paths except one. Release skb when returning NET_XMIT_DROP. Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 901f3cc commit e6827d1

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/chelsio/cxgb4

1 file changed

+1
-0
lines changed

drivers/net/ethernet/chelsio/cxgb4/sge.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2938,6 +2938,7 @@ static inline int uld_send(struct adapter *adap, struct sk_buff *skb,
29382938
txq_info = adap->sge.uld_txq_info[tx_uld_type];
29392939
if (unlikely(!txq_info)) {
29402940
WARN_ON(true);
2941+
kfree_skb(skb);
29412942
return NET_XMIT_DROP;
29422943
}
29432944

0 commit comments

Comments
 (0)