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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jun 2020 06:21:36 +0000 (08:21 +0200)
commita369e8378b48aa8fc93e574e5df7e198cfb88cd4
tree865665f73c227757a3db20537d5e5967b61e378f
parent1c38cfc259a7ff1bea18ef8602db86393c849059
qlcnic: fix missing release in qlcnic_83xx_interrupt_test.

commit 15c973858903009e995b2037683de29dfe968621 upstream.

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: b6b4316c8b2f ("qlcnic: Handle qlcnic_alloc_mbx_args() failure")
Signed-off-by: Qiushi Wu <wu000273@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c