diff options
| author | Dan Carpenter <[email protected]> | 2021-08-06 18:05:18 +0300 | 
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-08-06 16:12:23 -0400 | 
| commit | 420c81c84b596984e0afb6e8b884dc67ddfa13f6 (patch) | |
| tree | 816bca63c15160630c010a96caa1c35b6cc18b7b /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | 1b41d67ec9612b30aaa2ef3848d86a708eceb2cf (diff) | |
drm/amdgpu: check for allocation failure in amdgpu_vkms_sw_init()
Check whether the kcalloc() fails and return -ENOMEM if it does.
Fixes: 84ec374bd58036 ("drm/amdgpu: create amdgpu_vkms (v4)")
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions