msm: mdss: Allow up to 10 overlays per display

As per overall system performance recommendation, allow up to
10 overlays per display composition.

Change-Id: Ida0934588e45eec6556d48356ac30bfe1447ca50
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
This commit is contained in:
Jeykumar Sankaran 2014-11-07 16:57:41 -08:00 committed by David Keitel
parent d8a026f775
commit 57df33e7aa

View file

@ -3207,7 +3207,7 @@ static int __handle_ioctl_overlay_prepare(struct msm_fb_data_type *mfd,
if (copy_from_user(&ovlist, argp, sizeof(ovlist)))
return -EFAULT;
if (ovlist.num_overlays >= OVERLAY_MAX) {
if (ovlist.num_overlays > OVERLAY_MAX) {
pr_err("Number of overlays exceeds max\n");
return -EINVAL;
}