diff options
| author | Alan Brady <alan.brady@intel.com> | 2016-11-09 00:05:05 +0300 |
|---|---|---|
| committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-12-03 10:10:41 +0300 |
| commit | 47d2a5d8279dcdcaec2c67b3d2c72cfa62979c58 (patch) | |
| tree | 970955bded152a17aa64049490c756029225383a /tools/perf/scripts/python | |
| parent | dedecb6d429bd3311bb24ea1379b47c8471c88b9 (diff) | |
| download | linux-47d2a5d8279dcdcaec2c67b3d2c72cfa62979c58.tar.xz | |
i40evf: check for msix_entries null dereference
It is possible for msix_entries to be freed by a previous suspend/remove
before a VF is closed. This patch fixes the issue by checking for NULL
before dereferencing msix_entries and returning early in the case where
it is NULL within the i40evf_close code path. Without this patch it is
possible to trigger a kernel panic through NULL dereference.
Change-ID: I92a2746e82533a889e25f91578eac9abd0388ae2
Signed-off-by: Alan Brady <alan.brady@intel.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')
0 files changed, 0 insertions, 0 deletions
