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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Aug 2019 18:34:23 +0000 (11:34 -0700)
commitdebea2cd3193ac868289e8893c3a719c265b0612
treebeb750f62b8f14506b9f6e11f474b8f4831c148f
parent5c4e2e1af345426f63410a50e2a678673574aa02
net: cxgb3_main: Fix a resource leak in a error path in 'init_one()'

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>
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c