]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd0964932400ec424dbc37c78ab4d08bd732a945d
treebeb750f62b8f14506b9f6e11f474b8f4831c148f
parent49d0c47bf2ec6d109b3a53d900b0fc2c143041b3
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