aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2020-07-30 08:20:22 +0000
committerOded Gabbay <[email protected]>2020-08-22 09:47:58 +0000
commit804d057cfae25c5447b36099fa59682d0d184ed6 (patch)
tree0073a2ec0bb20a0404870bc8e1f8cacd65866055 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parenthabanalabs: set max power according to card type (diff)
downloadkernel-804d057cfae25c5447b36099fa59682d0d184ed6.tar.gz
kernel-804d057cfae25c5447b36099fa59682d0d184ed6.zip
habanalabs: fix incorrect check on failed workqueue create
The null check on a failed workqueue create is currently null checking hdev->cq_wq rather than the pointer hdev->cq_wq[i] and so the test will never be true on a failed workqueue create. Fix this by checking hdev->cq_wq[i]. Addresses-Coverity: ("Dereference before null check") Fixes: 5574cb2194b1 ("habanalabs: Assign each CQ with its own work queue") Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions