aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2021-05-15 09:53:15 +0000
committerThomas Zimmermann <[email protected]>2021-05-15 12:04:42 +0000
commit9c6f19421c935db05c414bdbb3645375cd600f8d (patch)
treeb1b607abff30f241a74b5f5f2e83f279dbde6b44 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentdrm/vmwgfx: Fix return value check in vmw_setup_pci_resources() (diff)
downloadkernel-9c6f19421c935db05c414bdbb3645375cd600f8d.tar.gz
kernel-9c6f19421c935db05c414bdbb3645375cd600f8d.zip
drm: simpledrm: fix a potential NULL dereference
The drm_format_info() function returns NULL if the format is unsupported, but the simplefb_get_validated_format() is expected to return error pointers. If we propagate the NULL return then it will lead to a NULL dereference in the callers. Swap the NULL and trade it in for an ERR_PTR(-EINVAL). Fixes: 11e8f5fd223b ("drm: Add simpledrm driver") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/YJ+aC47XX58ICXax@mwanda
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions