mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
qed: Unlock on error in qed_vf_pf_acquire()
[ Upstream commit66117a9d9a] My static checker complains that we're holding a mutex on this error path. Let's goto exit instead of returning directly. Fixes:b0bccb69eb("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> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9c8cd2a872
commit
498d02453e
@@ -204,7 +204,7 @@ static int qed_vf_pf_acquire(struct qed_hwfn *p_hwfn)
|
||||
/* send acquire request */
|
||||
rc = qed_send_msg2pf(p_hwfn, &resp->hdr.status, sizeof(*resp));
|
||||
if (rc)
|
||||
return rc;
|
||||
goto exit;
|
||||
|
||||
/* copy acquire response from buffer to p_hwfn */
|
||||
memcpy(&p_iov->acquire_resp, resp, sizeof(p_iov->acquire_resp));
|
||||
|
||||
Reference in New Issue
Block a user