mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +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
147bcca117
commit
631ebe93bd
@@ -1634,9 +1634,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