From: Maninder Singh Date: Wed, 8 Jul 2015 04:13:35 +0000 (+0530) Subject: IB/mlx4: Optimize freeing of items on error unwind X-Git-Tag: omap-for-v4.3/fixes-merge-window~240^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a39a98ff4cc8b514fe6fa551f6ed59cd60e07da2;p=pandora-kernel.git IB/mlx4: Optimize freeing of items on error unwind On failure, we loop through all possible pointers and test them before calling kfree. But really, why even attempt to free items we didn't allocate when we can easily loop through exactly and only the devices for which the original memory allocation succeeded and free just those. Signed-off-by: Maninder Singh Signed-off-by: Doug Ledford --- Reading git-diff-tree failed