drm/radeon: fix underflow in r600_cp_dispatch_texture()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 3 Jul 2015 08:54:28 +0000 (11:54 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jul 2015 16:41:43 +0000 (12:41 -0400)
The "if (pass_size > buf->total)" can underflow so I have changed the
type of size and pass_size to unsigned to avoid this problem.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/r600_cp.c

Simple merge