]> git.baikalelectronics.ru Git - kernel.git/commit
cnic: Fix an error handling path in 'cnic_alloc_bnx2x_resc()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 21 Sep 2017 23:01:11 +0000 (01:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Sep 2017 00:04:27 +0000 (17:04 -0700)
commit8e2c55084e1e6c4ed1a90d67c14a4c76978bde2f
tree989993fbb9153d5456e4b0d3390161c5b67599e2
parentabad585079c254193d97fc7c4714d8e1bc74e312
cnic: Fix an error handling path in 'cnic_alloc_bnx2x_resc()'

All the error handling paths 'goto error', except this one.
We should also go to error in this case, or some resources will be
leaking.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/cnic.c