summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-05-29 16:07:34 +0100
committerAlex Deucher <alexander.deucher@amd.com>2019-05-29 16:50:09 -0500
commitcf401e2856b27b2deeada498eab864e2a50cf219 (patch)
treeb53ebd525a0c1e79772a47fbeb419035d680bbde /drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c
parent394e9a14c63d58e0f45323629a3f9ce1e5bf0215 (diff)
drm/amdkfd: fix null pointer dereference on dev
The pointer dev is set to null yet it is being dereferenced when checking dev->dqm->sched_policy. Fix this by performing the check on dev->dqm->sched_policy after dev has been assigned and null checked. Also remove the redundant null assignment to dev. Addresses-Coverity: ("Explicit null dereference") Fixes: 1a058c337676 ("drm/amdkfd: New IOCTL to allocate queue GWS") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c')
0 files changed, 0 insertions, 0 deletions