]> Git Repo - linux.git/commit
drm/radeon: fix underflow in r600_cp_dispatch_texture()
authorDan Carpenter <[email protected]>
Fri, 3 Jul 2015 08:54:28 +0000 (11:54 +0300)
committerAlex Deucher <[email protected]>
Wed, 8 Jul 2015 16:41:43 +0000 (12:41 -0400)
commit866a92040392d844d151aa6a2ba15be2e6e5df4f
treeb82349b0bab19a2031fc90dc88d529af28ddcdf2
parent5e3c4f907043a7fae1b48e86536dc7b9efa07e29
drm/radeon: fix underflow in r600_cp_dispatch_texture()

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 <[email protected]>
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/radeon/r600_cp.c
This page took 0.05244 seconds and 4 git commands to generate.