drm/amdgpu: fix num_ibs check
authorChristian König <christian.koenig@amd.com>
Sun, 31 Jan 2016 10:32:04 +0000 (11:32 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Feb 2016 19:17:18 +0000 (14:17 -0500)
commit4acabfe3793eb9bf89f71cc0cef23dfb2a812916
tree6f7264b6be02983e133060311790a54db7ce3fbd
parent867d0517c705d9ae5a21f566ffe2308f5c070c6c
drm/amdgpu: fix num_ibs check

Specifying no IBs on command submission is invalid, stop crashing
badly when somebody tries it.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucer@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c