[Intel-gfx] [PATCH] drm/i915: Return the error code from init_hws()
Chris Wilson
chris at chris-wilson.co.uk
Wed May 26 22:56:02 CEST 2010
Otherwise we indicate success in the event of failure and this will lead
to an eventual OOPS.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
drivers/gpu/drm/i915/i915_gem.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index aacd798..e0e29ae 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -4640,7 +4640,7 @@ err_unpin:
err_unref:
drm_gem_object_unreference(obj);
err:
- return 0;
+ return ret;
}
static void
--
1.7.1
More information about the Intel-gfx
mailing list