]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd3d4d048c3ed71d7f49c94108450bf406fe89dff
tree4ad9d9fb45e7b73c3b6c1108223848b6951552b7
parentce2942538137031aa801267839a465a4e733394a
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