qed: Unlock on error in qed_vf_pf_acquire()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 28 Apr 2017 12:56:09 +0000 (15:56 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 May 2017 02:40:45 +0000 (22:40 -0400)
commit66117a9d9a8ca948680d6554769ef9e88f936954
tree301444f835e3483a5ed454b0f9a809b2990842e2
parent1c942c941d3e209fb8729d0c0f6322d55b5e0444
qed: Unlock on error in qed_vf_pf_acquire()

My static checker complains that we're holding a mutex on this error
path.  Let's goto exit instead of returning directly.

Fixes: b0bccb69eba3 ("qed: Change locking scheme for VF channel")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_vf.c