diff options
| author | Colin Ian King <[email protected]> | 2017-03-20 12:03:03 +0000 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2017-03-27 16:47:44 -0700 |
| commit | 703ba88548082f91970ee91c9fb64ab582e391cd (patch) | |
| tree | a8a88790e807c4b7a58e3d7d9c8e4ff22238f936 /tools/perf/scripts/python | |
| parent | c76cb6ed5431756071cc13635db70234597b9cf7 (diff) | |
i40evf: dereference VSI after VSI has been null checked
VSI is being dereferenced before the VSI null check; if VSI is
null we end up with a null pointer dereference. Fix this by
performing VSI deference after the VSI null check. Also remove
the need for using adapter by using vsi->back->cinst.
Detected by CoverityScan, CID#1419696, CID#1419697
("Dereference before null check")
Fixes: ed0e894de7c133 ("i40evf: add client interface")
Signed-off-by: Colin Ian King <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions