mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
qed: Fix PTT leak in qed_drain()
[ Upstream commit 9aaa4e8ba1 ]
Release PTT before entering error flow.
Signed-off-by: Denis Bolotin <denis.bolotin@cavium.com>
Signed-off-by: Michal Kalderon <michal.kalderon@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
61d221fce2
commit
30d5a7c1b6
@@ -1124,9 +1124,9 @@ static int qed_drain(struct qed_dev *cdev)
|
||||
return -EBUSY;
|
||||
}
|
||||
rc = qed_mcp_drain(hwfn, ptt);
|
||||
qed_ptt_release(hwfn, ptt);
|
||||
if (rc)
|
||||
return rc;
|
||||
qed_ptt_release(hwfn, ptt);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user