diff options
| author | Colin Ian King <[email protected]> | 2017-09-22 17:13:48 +0000 |
|---|---|---|
| committer | Jeff Kirsher <[email protected]> | 2017-10-26 14:42:57 +0000 |
| commit | 5983587c8c5ef00d6886477544ad67d495bc5479 (patch) | |
| tree | 5616315998d55a61a9f5c60fcc2951c864c8f4f3 /net/switchdev/switchdev.c | |
| parent | e1000: fix race condition between e1000_down() and e1000_watchdog (diff) | |
| download | kernel-5983587c8c5ef00d6886477544ad67d495bc5479.tar.gz kernel-5983587c8c5ef00d6886477544ad67d495bc5479.zip | |
e1000: avoid null pointer dereference on invalid stat type
Currently if the stat type is invalid then data[i] is being set
either by dereferencing a null pointer p, or it is reading from
an incorrect previous location if we had a valid stat type
previously. Fix this by skipping over the read of p on an invalid
stat type.
Detected by CoverityScan, CID#113385 ("Explicit null dereferenced")
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Alexander Duyck <[email protected]>
Tested-by: Aaron Brown <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
