summaryrefslogtreecommitdiff
path: root/fs/nfs/pagelist.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-09-22 20:13:48 +0300
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2017-10-26 17:42:57 +0300
commit5983587c8c5ef00d6886477544ad67d495bc5479 (patch)
tree5616315998d55a61a9f5c60fcc2951c864c8f4f3 /fs/nfs/pagelist.c
parent44c445c3d1b4eacff23141fa7977c3b2ec3a45c9 (diff)
downloadlinux-5983587c8c5ef00d6886477544ad67d495bc5479.tar.xz
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 <colin.king@canonical.com> Reviewed-by: Alexander Duyck <alexander.h.duyck@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'fs/nfs/pagelist.c')
0 files changed, 0 insertions, 0 deletions