]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: Fix error handling path in 'init_one()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 6 Feb 2018 20:17:17 +0000 (21:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Feb 2018 02:46:06 +0000 (21:46 -0500)
commit475dc179a689c3e7381d1e7ad40ed502664c70dc
tree6cb86722c7c984b82c01d81580373c0d94374e35
parent8940bde9834c61fbfd3a89120de76fc1b69b8523
cxgb4: Fix error handling path in 'init_one()'

Commit 08555ad2ed65d ("cxgb4: restructure VF mgmt code") has reordered
some code but an error handling label has not been updated accordingly.
So fix it and free 'adapter' if 't4_wait_dev_ready()' fails.

Fixes: 08555ad2ed65d ("cxgb4: restructure VF mgmt code")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c