diff mbox

[PATCH/RFC,369/390] drm/rcar-du: Fix planes allocation for multiplanar formats

Message ID 1364525119-31791-370-git-send-email-horms+renesas@verge.net.au (mailing list archive)
State New, archived
Headers show

Commit Message

Simon Horman March 29, 2013, 2:44 a.m. UTC
From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>

When more than one hardware plane need to be reserved an extraneous
break statement potentially caused the allocator to use an already
allocated plane. Fix it.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
(cherry picked from commit aefdb1b293b7318d9070cc2993e6fbb79ebfd9a5)

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 drivers/gpu/drm/rcar-du/rcar_du_plane.c |    2 --
 1 file changed, 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/rcar-du/rcar_du_plane.c b/drivers/gpu/drm/rcar-du/rcar_du_plane.c
index 220ca00..94bd0e2 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_plane.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_plane.c
@@ -49,8 +49,6 @@  int rcar_du_plane_reserve(struct rcar_du_plane *plane)
 		if (plane->format->planes == 1 ||
 		    rcdu->planes.free & (1 << ((i + 1) % 8)))
 			break;
-
-		break;
 	}
 
 	if (i == ARRAY_SIZE(rcdu->planes.planes))