[roce-0114]RDMA/hns: Release qp resources when failed to destroy qp

Bug #1859593 reported by Fred Kimmy
6
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

Ike Panhc (ikepanhc)
tags: added: ikeradar
Ike Panhc (ikepanhc)
description: updated
Revision history for this message
Ike Panhc (ikepanhc) wrote :

In focal kernel since 5.4.0-13.16

Revision history for this message
Ike Panhc (ikepanhc) wrote :

Can not clean cherry-pick for bionic kernel.

tags: removed: ikeradar
Changed in kunpeng920:
status: New → Fix Committed
Revision history for this message
Ike Panhc (ikepanhc) wrote :

In HWE 5.3 kernel already.

Changed in kunpeng920:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.