Skip to content
Commit 73792e6e authored by Kevin Tang's avatar Kevin Tang Committed by kevin3.tang
Browse files

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: default avatarZou Wei <zou_wei@huawei.com>
Signed-off-by: default avatarKevin Tang <kevin3.tang@gmail.com>
Reviewed-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Acked-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/all/20220117084156.9338-1-kevin3.tang@gmail.com

v1 -> v2:
- new patch
parent 8668658a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment