summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2014-02-10 01:08:35 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2014-02-10 01:08:35 +0000
commit18fdd6d4de22f5a7ba671322ec2aa8aee392d9a5 (patch)
treeaf058b163771906f7b0bb27785bef377580448c5
parenta6055c2b5b11395ce7a41d9ac5cc5de4534e328d (diff)
drm/radeon: forever loop on error in radeon_do_test_moves()
From Dan Carpenter e81db22d989873123a9d9f33d55d86e5db2ff8af in ubuntu 3.8 89cd67b326fa95872cc2b4524cd807128db6071d in mainline linux
-rw-r--r--sys/dev/pci/drm/radeon/radeon_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/radeon/radeon_test.c b/sys/dev/pci/drm/radeon/radeon_test.c
index 5456447ef2c..1f8cc8bb23d 100644
--- a/sys/dev/pci/drm/radeon/radeon_test.c
+++ b/sys/dev/pci/drm/radeon/radeon_test.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: radeon_test.c,v 1.2 2014/02/09 11:03:31 jsg Exp $ */
+/* $OpenBSD: radeon_test.c,v 1.3 2014/02/10 01:08:34 jsg Exp $ */
/*
* Copyright 2009 VMware, Inc.
*
@@ -38,8 +38,8 @@ static void radeon_do_test_moves(struct radeon_device *rdev, int flag)
struct radeon_bo **gtt_obj = NULL;
struct radeon_fence *fence = 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: