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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2020 07:59:51 +0000 (09:59 +0200)
commita7b488d65d39d94ae66b93cca9fc655aaa2ea1bb
treeb33f8646fc7d16f6836ba73712a43f9d38ea64f6
parent5f4e6b874b57a510ad38bd06b7f7ba1d209f57ad
cxgb4: add missing release on skb in uld_send()

[ Upstream commit e6827d1abdc9b061a57d7b7d3019c4e99fabea2f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/chelsio/cxgb4/sge.c