diff options
author | Kevin Tang <[email protected]> | 2021-12-24 21:37:00 +0800 |
---|---|---|
committer | kevin3.tang <[email protected]> | 2022-02-14 21:53:17 +0800 |
commit | 73792e6e66be1225837cc1a40f1e39b1d077751c (patch) | |
tree | 08b40421b5e97c23012961f25fa3d9136f9de131 /drivers/gpu/drm/amd/amdgpu | |
parent | 8668658aebb0a19d877d5a81c004baf716c4aaa6 (diff) |
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 <[email protected]>
Signed-off-by: Kevin Tang <[email protected]>
Reviewed-by: Javier Martinez Canillas <[email protected]>
Acked-by: Thomas Zimmermann <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
v1 -> v2:
- new patch
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
0 files changed, 0 insertions, 0 deletions