[roce-0114]RDMA/hns: Prevent memory leaks of eq->buf_list

Bug #1859594 reported by Fred Kimmy
6
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: tairadar
Ike Panhc (ikepanhc)
tags: added: ikeradar
Revision history for this message
Taihsiang Ho (tai271828) wrote :

Already in bionix-master-next, commit 9b8294cc368a57b8d40779fa4ad0a918bcd26412

Revision history for this message
Taihsiang Ho (tai271828) wrote :

A preliminary test is done with bionic Ubuntu-4.15.0-89.89 tree.

Ike Panhc (ikepanhc)
Changed in kunpeng920:
status: New → In Progress
tags: removed: ikeradar
Taihsiang Ho (tai271828)
tags: added: tairadar
Changed in kunpeng920:
status: In Progress → Fix Committed
Revision history for this message
Taihsiang Ho (tai271828) wrote :

The patch has been in bionic/master, bionic/hwe, and focal/master.

Taihsiang Ho (tai271828)
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.