Commit e6827d1a authored by Navid Emamdoost's avatar Navid Emamdoost Committed by David S. Miller

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: default avatarNavid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 901f3cc1
...@@ -2938,6 +2938,7 @@ static inline int uld_send(struct adapter *adap, struct sk_buff *skb, ...@@ -2938,6 +2938,7 @@ static inline int uld_send(struct adapter *adap, struct sk_buff *skb,
txq_info = adap->sge.uld_txq_info[tx_uld_type]; txq_info = adap->sge.uld_txq_info[tx_uld_type];
if (unlikely(!txq_info)) { if (unlikely(!txq_info)) {
WARN_ON(true); WARN_ON(true);
kfree_skb(skb);
return NET_XMIT_DROP; return NET_XMIT_DROP;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment