commit | 9bbf282da87294e1bda0ccb4e351bfdf5fc076cd | [log] [tgz] |
---|---|---|
author | Doug Ledford <dledford@redhat.com> | Thu Jul 09 10:16:12 2015 -0400 |
committer | Doug Ledford <dledford@redhat.com> | Tue Jul 14 13:20:15 2015 -0400 |
tree | 7a30b55fc8a4cf4ab9c7d1433f1b2f584d05de7b | |
parent | a39a98ff4cc8b514fe6fa551f6ed59cd60e07da2 [diff] |
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: Doug Ledford <dledford@redhat.com>