]> git.baikalelectronics.ru Git - kernel.git/commit
qlcnic: fix missing release in qlcnic_83xx_interrupt_test.
authorQiushi Wu <wu000273@umn.edu>
Mon, 25 May 2020 08:24:39 +0000 (03:24 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 May 2020 01:06:09 +0000 (18:06 -0700)
commit8e1246ce09212f6402d57656ce6aaf26465bd623
treee017a0982bef58a7af6fff7778856cb656b59fda
parenta9650569b85df0d354fc92b694488817ee241ba2
qlcnic: fix missing release in qlcnic_83xx_interrupt_test.

In function qlcnic_83xx_interrupt_test(), function
qlcnic_83xx_diag_alloc_res() is not handled by function
qlcnic_83xx_diag_free_res() after a call of the function
qlcnic_alloc_mbx_args() failed. Fix this issue by adding
a jump target "fail_mbx_args", and jump to this new target
when qlcnic_alloc_mbx_args() failed.

Fixes: 4f5cfff7f978 ("qlcnic: Handle qlcnic_alloc_mbx_args() failure")
Signed-off-by: Qiushi Wu <wu000273@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c