From: Matan Barak Date: Sun, 14 Dec 2014 14:18:04 +0000 (+0200) Subject: net/mlx4_core: Fixed memory leak and incorrect refcount in mlx4_load_one X-Git-Tag: omap-for-v3.20/drop-legacy-3517~36^2~28^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da315679e80635021e98de1306ff4eee0759ba57;p=pandora-kernel.git net/mlx4_core: Fixed memory leak and incorrect refcount in mlx4_load_one The current mlx4_load_one has a memory leak as it always allocates dev_cap, but frees it only on error. In addition, even if VFs exist when mlx4_load_one is called, we still need to notify probed VFs that we're loading (by incrementing pf_loading). Fixes: a0eacca948d2 ('net/mlx4_core: Refactor mlx4_load_one') Signed-off-by: Matan Barak Signed-off-by: Or Gerlitz Signed-off-by: David S. Miller --- Reading git-diff-tree failed