diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-01-24 12:25:33 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-01-27 20:20:38 +0300 |
commit | 8ba28ac9f5cc36f91b64273b11d302e02bd77508 (patch) | |
tree | 68aff7e691359fc5db0d797c4bcd1d7cca6de0f6 /scripts/gdb/linux/modules.py | |
parent | 967de2a9dcd52b248e447608fa03d30db4eb05ed (diff) | |
download | linux-8ba28ac9f5cc36f91b64273b11d302e02bd77508.tar.xz |
drm/amd/amdgpu/amdgpu_ttm: Handle return NULL error from ioremap_nocache
Here, If ioremap_nocache will fail. It will return NULL.
Kernel can run into a NULL-pointer dereference.
This error check will avoid NULL pointer dereference.
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions