]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: use WARN_ON_ONCE instead of BUG_ON in the SA
authorChristian König <christian.koenig@amd.com>
Mon, 25 Jan 2016 12:01:42 +0000 (13:01 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Feb 2016 19:17:03 +0000 (14:17 -0500)
commitd182660df544a9d37228704d9b9fa966099f15e1
tree9ae3a6c2b7310e19519f59ce63101e789083c8e5
parentb3fba5eb470b9f9f212dad4fa59f99a88ad5e20e
drm/amdgpu: use WARN_ON_ONCE instead of BUG_ON in the SA

Crashing the system doesn't helps at all. Also properly return
-EINVAL if size or alignment are outside valid ranges.

Signed-off-by: Christian König <christian.koenig@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_sa.c