diff options
| author | Jeff Mahoney <jeffm@suse.com> | 2017-06-04 01:01:17 +0300 |
|---|---|---|
| committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2017-06-14 03:36:39 +0300 |
| commit | a09c0fc3f5d775231f1884e0e66c495065a461ee (patch) | |
| tree | d1fdef3e135eca0fc54540449018f12f190f615a /tools/perf/scripts/python/syscall-counts.py | |
| parent | 4ebdf8af3017ce242f37be2ae5e5f655dc9846ef (diff) | |
| download | linux-a09c0fc3f5d775231f1884e0e66c495065a461ee.tar.xz | |
ixgbe: pci_set_drvdata must be called before register_netdev
We call pci_set_drvdata immediately after calling register_netdev,
which leaves a window where tasks writing to the sriov_numvfs sysfs
attribute can sneak in and crash the kernel. register_netdev cleans
up after itself so placing pci_set_drvdata immediately before it
should preserve the intent of commit 0fb6a55cc31f ("ixgbe: fix crash
on rmmod after probe fail").
Fixes: 0fb6a55cc31f ("ixgbe: fix crash on rmmod after probe fail")
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
