[patch] drm/radeon: fix underflow in r600_cp_dispatch_texture()

2015-07-06 Thread Alex Deucher
On Fri, Jul 3, 2015 at 5:38 AM, Christian König wrote: > On 03.07.2015 10:54, Dan Carpenter wrote: >> >> 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. >> >> Signed-off-by: Dan Carpenter > > > Reviewed-by: Ch

[patch] drm/radeon: fix underflow in r600_cp_dispatch_texture()

2015-07-03 Thread Dan Carpenter
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. Signed-off-by: Dan Carpenter --- This code is on the way out, but whatever. I may as well send this patch since I already wrote the patch. diff --git a/drivers/gpu

[patch] drm/radeon: fix underflow in r600_cp_dispatch_texture()

2015-07-03 Thread Christian König
On 03.07.2015 10:54, Dan Carpenter wrote: > 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. > > Signed-off-by: Dan Carpenter Reviewed-by: Christian König > --- > This code is on the way out, but whatever. I