diff options
| author | Kevin Tang <[email protected]> | 2021-12-24 13:37:00 +0000 |
|---|---|---|
| committer | kevin3.tang <[email protected]> | 2022-02-14 13:53:17 +0000 |
| commit | 73792e6e66be1225837cc1a40f1e39b1d077751c (patch) | |
| tree | 08b40421b5e97c23012961f25fa3d9136f9de131 /drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c | |
| parent | drm/sprd: fix potential NULL dereference (diff) | |
| download | kernel-73792e6e66be1225837cc1a40f1e39b1d077751c.tar.gz kernel-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 <[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/amdgpu_gtt_mgr.c')
0 files changed, 0 insertions, 0 deletions
