HomeFreeBSD

mlx4: Fix a memory leak bug.

Description

mlx4: Fix a memory leak bug.

In function mlx4_opreq_action(), pointer "mailbox" is not released,
when mlx4_cmd_box() return and error, causing a memory leak bug.
Fix this issue by going to "out" label, mlx4_free_cmd_mailbox() can
free this pointer.

Linux commit:
febfd9d3c7f74063e8e630b15413ca91b567f963

PR: 264056
Sponsored by: NVIDIA Networking

(cherry picked from commit 527762b2f776381569bd662ce236d2845234c0a7)

Details

Provenance
hselaskyAuthored on May 19 2022, 8:10 AM
Parents
rG6953b4870f00: ibcore: Fix possible memory leak in ib_mad_post_receive_mads()
Branches
Unknown
Tags
Unknown