mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 10:01:41 +00:00
qed: Fix PTT leak in qed_drain()
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>
This commit is contained in:
parent
11123ab9d9
commit
9aaa4e8ba1
@ -1782,9 +1782,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;
|
||||
|
Loading…
Reference in New Issue
Block a user