[roce-0114]RDMA/hns: Prevent memory leaks of eq->buf_list
Bug #1859594 reported by
Fred Kimmy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kunpeng920 |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu-18.04 |
Fix Released
|
Undecided
|
Taihsiang Ho | ||
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]
eq->buf_list->buf and eq->buf_list should also be freed when eqe_hop_num is set to 0, or there will be memory leaks.
[Steps to Reproduce]
set eqe hop num to 0.
[Actual Results]
Memory leaks.
[Expected Results]
Resources freed correctly
[Reproducibility]
Inevitably
[Additional information]
Hardware: D06 CS
Firmware: NA
Kernel: NA
[Resolution]
Free eq->buf_list at last
RDMA/hns: Prevent memory leaks of eq->buf_list
tags: | added: ikeradar |
Changed in kunpeng920: | |
status: | New → In Progress |
tags: | removed: ikeradar |
tags: | added: tairadar |
Changed in kunpeng920: | |
status: | In Progress → Fix Committed |
Changed in kunpeng920: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Already in bionix-master-next, commit 9b8294cc368a57b 8d40779fa4ad0a9 18bcd26412