OSDN Git Service

cxgb4: add missing release on skb in uld_send()
authorNavid Emamdoost <navid.emamdoost@gmail.com>
Thu, 23 Jul 2020 02:58:39 +0000 (21:58 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jul 2020 03:04:17 +0000 (20:04 -0700)
commite6827d1abdc9b061a57d7b7d3019c4e99fabea2f
tree4ad9d9fb45e7b73c3b6c1108223848b6951552b7
parent901f3cc1639e5103a8997f6ab243785d292e2074
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>
drivers/net/ethernet/chelsio/cxgb4/sge.c