[roce-0114]RDMA/hns: Release qp resources when failed to destroy qp
Bug #1859593 reported by
Fred Kimmy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kunpeng920 |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu-18.04 |
Won't Fix
|
Undecided
|
Unassigned | ||
Ubuntu-18.04-hwe |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu-20.04 |
Fix Released
|
Undecided
|
Unassigned | ||
Upstream-kernel |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Bug Description]
Even if no response from hardware, we should make sure that qp related resources are released to avoid memory leaks.
[Steps to Reproduce]
Failed to destroy qp
[Actual Results]
Memory leak
[Expected Results]
No memory leak
[Reproducibility]
Inevitably
[Additional information]
Hardware: D06 CS
Firmware: NA
Kernel: NA
[Resolution]
Released QP when failed to destroy QP.
d302c6e3a689 RDMA/hns: Release qp resources when failed to destroy qp
994195e15370 RDMA/hns: Fix memory leak on 'context' on error return path
In focal kernel since 5.4.0-13.16