diff mbox

[8/9] drm/i915: return error if fb is NULL

Message ID 1409247613-14232-8-git-send-email-gustavo@padovan.org (mailing list archive)
State New, archived
Headers show

Commit Message

Gustavo Padovan Aug. 28, 2014, 5:40 p.m. UTC
From: Gustavo Padovan <gustavo.padovan@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@collabora.co.uk>
---
 drivers/gpu/drm/i915/intel_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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) {