[Intel-gfx] [PATCH 8/9] drm/i915: return error if fb is NULL
Gustavo Padovan
gustavo at padovan.org
Thu Aug 28 19:40:12 CEST 2014
From: Gustavo Padovan <gustavo.padovan at collabora.co.uk>
intel_pipe_check_base() should return an error is the fb received is
set to NULL.
Signed-off-by: Gustavo Padovan <gustavo.padovan at collabora.co.uk>
---
drivers/gpu/drm/i915/intel_display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 42bd6c6..eb6febf 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -2681,7 +2681,7 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y,
/* no fb bound */
if (!fb) {
DRM_ERROR("No FB bound\n");
- return 0;
+ return -EINVAL;
}
if (intel_crtc->plane > INTEL_INFO(dev)->num_pipes) {
--
1.9.3
More information about the Intel-gfx
mailing list