]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amdgpu: Fix some sanity check
authorxinhui pan <xinhui.pan@amd.com>
Tue, 19 Mar 2019 03:16:32 +0000 (11:16 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Mar 2019 03:39:29 +0000 (22:39 -0500)
commit73aa8e1a3a84609dce2b84391308017331cc8f24
treeea1a54d44fe5dca042067f35f4d863d21ab19330
parent6c851417336af718587a83b27fbe83480c31fc2f
drm/amdgpu: Fix some sanity check

ras context might be NULL, so move con->h_data after check !con
also fix sizeof wrong type while at it.

Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c