]> 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)
commit8cd4ad1f213a64577df11df24ef847c45af94315
treee017a0982bef58a7af6fff7778856cb656b59fda
parentefbc4653ba47d135532b01ec59ef7d0a9edf6f66
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: 214fcec9c1db ("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