net: cxgb3_main: Fix a resource leak in a error path in 'init_one()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 6 Aug 2019 08:55:12 +0000 (10:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2019 06:26:40 +0000 (08:26 +0200)
commit04766b8cf2a4510c420973943c0088fc1e0a1f9a
tree4d96534d93b9ca938ca1094290ece87ee470cb0b
parent5a166c83eeadf349ffd91bc787fd0dae1bc5ff6c
net: cxgb3_main: Fix a resource leak in a error path in 'init_one()'

[ Upstream commit debea2cd3193ac868289e8893c3a719c265b0612 ]

A call to 'kfree_skb()' is missing in the error handling path of
'init_one()'.
This is already present in 'remove_one()' but is missing here.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c