• Doug Ledford's avatar
    IB/mlx4: Fix memory leak in do_slave_init · 9bbf282d
    Doug Ledford authored
    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>
    9bbf282d
main.c 78.5 KB