diff options
author | 2014-12-14 16:18:04 +0200 | |
---|---|---|
committer | 2014-12-15 11:34:53 -0500 | |
commit | da315679e80635021e98de1306ff4eee0759ba57 (patch) | |
tree | 35ce69487bed726b3225d9bd320dd80d50e6a328 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security (diff) | |
download | wireguard-linux-da315679e80635021e98de1306ff4eee0759ba57.tar.xz wireguard-linux-da315679e80635021e98de1306ff4eee0759ba57.zip |
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 <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions