[Intel-gfx] [PATCH 5/5] drm/i915: check for errors on i915_drm_thaw
Paulo Zanoni
przanoni at gmail.com
Thu Sep 12 18:58:21 CEST 2013
From: Paulo Zanoni <paulo.r.zanoni at intel.com>
Before this patch, i915_drm_thaw would always return 0. After this
patch, it returns the error code from __i915_drm_thaw(), since it's
the only sub-function that can return an error code.
Signed-off-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
---
drivers/gpu/drm/i915/i915_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index ec690ca..f6dc6b8 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -650,7 +650,7 @@ static int i915_drm_thaw(struct drm_device *dev)
mutex_unlock(&dev->struct_mutex);
}
- __i915_drm_thaw(dev);
+ error = __i915_drm_thaw(dev);
return error;
}
--
1.8.3.1
More information about the Intel-gfx
mailing list