Skip to content
Commit 9bbf282d authored by Doug Ledford's avatar Doug Ledford
Browse files

IB/mlx4: Fix memory leak in do_slave_init



We create a number of work structs to be queued up to a workqueue, and
on completion of the workqueue handler, the workqueue handler frees the
allocated memory.  If, however, we don't queue the work struct because
the device is going down, then we need to free the memory ourselves.

Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent a39a98ff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment