drm/radeon: fix fence related segfault in CS
authorChristian König <deathsimple@vodafone.de>
Tue, 3 Jul 2012 12:05:41 +0000 (14:05 +0200)
committerChristian König <deathsimple@vodafone.de>
Tue, 17 Jul 2012 08:31:54 +0000 (10:31 +0200)
Don't return success if scheduling the IB fails, otherwise
we end up with an oops in ttm_eu_fence_buffer_objects.

Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/radeon_cs.c

index f1b75275f594993ffc3b0378950d8d8ccfb4fbba..d5aec095d358aed681011206c98ad2c5f97f0c46 100644 (file)
@@ -358,7 +358,7 @@ static int radeon_cs_ib_chunk(struct radeon_device *rdev,
        if (r) {
                DRM_ERROR("Failed to schedule IB !\n");
        }
-       return 0;
+       return r;
 }
 
 static int radeon_bo_vm_update_pte(struct radeon_cs_parser *parser,