aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
diff options
context:
space:
mode:
authorKevin Tang <kevin3.tang@gmail.com>2021-12-24 21:37:00 +0800
committerkevin3.tang <kevin3.tang@gmail.com>2022-02-14 21:53:17 +0800
commit73792e6e66be1225837cc1a40f1e39b1d077751c (patch)
tree08b40421b5e97c23012961f25fa3d9136f9de131 /drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
parentdrm/sprd: fix potential NULL dereference (diff)
downloadlinux-dev-73792e6e66be1225837cc1a40f1e39b1d077751c.tar.xz
linux-dev-73792e6e66be1225837cc1a40f1e39b1d077751c.zip
drm/sprd: check the platform_get_resource() return value
platform_get_resource() may fail and return NULL, so check it's value before using it. Reported-by: Zou Wei <zou_wei@huawei.com> Signed-off-by: Kevin Tang <kevin3.tang@gmail.com> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://lore.kernel.org/all/20220117084156.9338-1-kevin3.tang@gmail.com v1 -> v2: - new patch
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c')
0 files changed, 0 insertions, 0 deletions