diff options
| author | Colin Ian King <[email protected]> | 2019-05-29 15:07:34 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-05-29 21:50:09 +0000 |
| commit | cf401e2856b27b2deeada498eab864e2a50cf219 (patch) | |
| tree | b53ebd525a0c1e79772a47fbeb419035d680bbde /net/core/utils.c | |
| parent | drm/amdgpu: Need to set the baco cap before baco reset (diff) | |
| download | kernel-cf401e2856b27b2deeada498eab864e2a50cf219.tar.gz kernel-cf401e2856b27b2deeada498eab864e2a50cf219.zip | |
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 <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'net/core/utils.c')
0 files changed, 0 insertions, 0 deletions
