commit | 486a68f5449521edf5ea8a198481fc021da4a3e0 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Mon Apr 03 21:41:39 2017 +0300 |
committer | Alex Deucher <alexander.deucher@amd.com> | Tue Apr 04 14:42:21 2017 -0400 |
tree | 2be73569bcfa46e2ecae4c7761fc4bfe2960deeb | |
parent | 99147e64428b9c3bfcd97e545ae478906c79e6a8 [diff] |
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>