projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50b8f5a
)
drm/radeon: forever loop on error in radeon_do_test_moves()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Mon, 1 Jul 2013 16:39:34 +0000
(19:39 +0300)
committer
Alex Deucher
<alexander.deucher@amd.com>
Wed, 9 Oct 2013 21:13:47 +0000
(17:13 -0400)
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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/radeon/radeon_test.c
b/drivers/gpu/drm/radeon/radeon_test.c
index f4d6bcee9006451ca377b94ece370806a8f89d2d..12e8099a0823e23a1218c1e5a3f07e78bbfbfcd0 100644
(file)
--- a/
drivers/gpu/drm/radeon/radeon_test.c
+++ b/
drivers/gpu/drm/radeon/radeon_test.c
@@
-36,8
+36,8
@@
static void radeon_do_test_moves(struct radeon_device *rdev, int flag)
struct radeon_bo *vram_obj = NULL;
struct radeon_bo **gtt_obj = NULL;
uint64_t gtt_addr, vram_addr;
- unsigned
i,
n, size;
- int r, ring;
+ unsigned n, size;
+ int
i,
r, ring;
switch (flag) {
case RADEON_TEST_COPY_DMA: