mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +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
fd358f42a6
commit
0f1c847db3
@@ -1561,9 +1561,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