drm/radeon: forever loop on error in radeon_do_test_moves()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 1 Jul 2013 16:39:34 +0000 (19:39 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Oct 2013 21:13:47 +0000 (17:13 -0400)
commit89cd67b326fa95872cc2b4524cd807128db6071d
tree4a2b653055cefed438c964d5d9c66b471bb9f8c8
parent50b8f5aec04ebec7dbdf2adb17220b9148c99e63
drm/radeon: forever loop on error in radeon_do_test_moves()

The error path does this:

for (--i; i >= 0; --i) {

which is a forever loop because "i" is unsigned.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/radeon_test.c