]> git.baikalelectronics.ru Git - kernel.git/commit
drm: radeon: radeon_ttm: Handle return NULL error from ioremap_nocache
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 24 Jan 2017 09:16:16 +0000 (14:46 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 17:20:38 +0000 (12:20 -0500)
commit42fcc0846ca8b2d9068faf5e4adf65bcde4e2945
tree47c0830e6e6d82aeee746b0c48e9546135c41042
parent22f9ed1684e521640206200e64740a14f3ff7995
drm: radeon: radeon_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.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_ttm.c