diff options
author | Matan Barak <[email protected]> | 2014-12-14 16:18:04 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2014-12-15 11:34:53 -0500 |
commit | da315679e80635021e98de1306ff4eee0759ba57 (patch) | |
tree | 35ce69487bed726b3225d9bd320dd80d50e6a328 /lib/memory-notifier-error-inject.c | |
parent | 67e2c3883828b39548cee2091b36656787775d95 (diff) |
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 <[email protected]>
Signed-off-by: Or Gerlitz <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions