diff options
author | 2017-04-03 21:41:39 +0300 | |
---|---|---|
committer | 2017-04-04 14:42:21 -0400 | |
commit | 486a68f5449521edf5ea8a198481fc021da4a3e0 (patch) | |
tree | 2be73569bcfa46e2ecae4c7761fc4bfe2960deeb /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
parent | drm/amd/powerplay: fix a couple locking issues (diff) | |
download | linux-rng-486a68f5449521edf5ea8a198481fc021da4a3e0.tar.xz linux-rng-486a68f5449521edf5ea8a198481fc021da4a3e0.zip |
drm/amdgpu: Fix a NULL deref in amdgpu_vm_add_prt_cb()
We accidentally dereference "cb" if the kmalloc() fails.
Fixes: 451bc8eb8fe6 ("drm/amdgpu: fix PRT teardown on VM fini v3")
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions