aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-05-31 13:31:17 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2018-06-07 21:50:00 -0400
commite73c864ba3b57cc3c5cc6b328b9da1b48637a6df (patch)
tree24c0b66ca701328c70fee6435065e152b34a9cdf /drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c
parent10ee1f2206a3f5aa869bede4b7505b24203a7715 (diff)
scsi: aic7xxx: aic79xx: fix potential null pointer dereference on ahd
If AHD_DEBUG is enabled and ahd_platform_alloc fails then ahd is set to null and the debug printk dereferences ahd when passing it to ahd_name. Fix this by moving the debug printk to before the call to ahd_platform_alloc where ahd is not null at that point. Detected by CoverityScan, CID#100296 ("Explicit null dereference") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c')
0 files changed, 0 insertions, 0 deletions