From: Doug Ledford Date: Thu, 9 Jul 2015 14:16:12 +0000 (-0400) Subject: IB/mlx4: Fix memory leak in do_slave_init X-Git-Tag: omap-for-v4.3/fixes-merge-window~240^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bbf282da87294e1bda0ccb4e351bfdf5fc076cd;p=pandora-kernel.git 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 --- Reading git-diff-tree failed