aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2017-11-06 17:53:53 +0000
committerJens Axboe <[email protected]>2017-11-11 02:55:57 +0000
commitf0fba398fec65ff5a2e1bf8ae62718ec0450abaf (patch)
tree6bfdf6ba484c60c1223ee24ef04f426480cc71c9 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentfs: guard_bio_eod() needs to consider partitions (diff)
downloadkernel-f0fba398fec65ff5a2e1bf8ae62718ec0450abaf.tar.gz
kernel-f0fba398fec65ff5a2e1bf8ae62718ec0450abaf.zip
block: avoid null pointer dereference on null disk
It is possible that the pointer disk can be null and hence we can get a null pointer deference when accessing disk->flags. Add a null pointer check to avoid the dereference. Detected by CoverityScan, CID#1461133 ("Explicit null dereferenced") Fixes: 8ddcd653257c ("block: introduce GENHD_FL_HIDDEN") Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions