]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
commit05cf97e7a619fc7ede81ee6bb8ebfa7531b633f5
tree989993fbb9153d5456e4b0d3390161c5b67599e2
parentcd4175b11685b11c40e31a03e05084cc212b0649
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