diff options
author | 2014-12-05 04:32:44 +0000 | |
---|---|---|
committer | 2014-12-05 09:13:09 -0800 | |
commit | 0333464f5f7c33965173893b2a7322da6fe751ab (patch) | |
tree | 3a9b20aae9e01f6486a438a192b63fc240a20b5b /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | ixgbevf: add support for X550 VFs (diff) | |
download | linux-dev-0333464f5f7c33965173893b2a7322da6fe751ab.tar.xz linux-dev-0333464f5f7c33965173893b2a7322da6fe751ab.zip |
ixgbevf: fix possible crashes in probe and remove
This patch resolves couple of issues in ixgbevf_probe/remove():
1. Fix a case where adapter->state is tested after free_netdev() this is
same as the patch for ixgbe from Daniel Borkmann <dborkman@redhat.com>:
commit b5b2ffc0574e1f27 ("ixgbe: fix use after free adapter->state test in ixgbe_remove/ixgbe_probe")
2. Move pci_set_drvdata() after all the error checks in ixgbevf_probe() and
then add a check in ixgbevf_probe() to avoid running the cleanup functions
twice in cases where probe failed.
CC: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions