From: Guan Xuetao <gxt@mprc.pku.edu.cn>
To: linux-fbdev@vger.kernel.org
Subject: Re: [PATCH v2 08/29] fbdev: unicore32: use display information in
Date: Wed, 15 Jun 2011 02:40:57 +0000 [thread overview]
Message-ID: <1308105657.4727.11.camel@epip-laptop> (raw)
In-Reply-To: <1308043507-11083-9-git-send-email-laurent.pinchart@ideasonboard.com>
On Tue, 2011-06-14 at 11:24 +0200, Laurent Pinchart wrote:
> We must not use any information in the passed var besides xoffset,
> yoffset and vmode as otherwise applications might abuse it.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
> ---
> drivers/video/fb-puv3.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/video/fb-puv3.c b/drivers/video/fb-puv3.c
> index 27f2c57..60a787f 100644
> --- a/drivers/video/fb-puv3.c
> +++ b/drivers/video/fb-puv3.c
> @@ -624,8 +624,8 @@ static int unifb_pan_display(struct fb_var_screeninfo *var,
> || var->xoffset)
> return -EINVAL;
> } else {
> - if (var->xoffset + var->xres > info->var.xres_virtual ||
> - var->yoffset + var->yres > info->var.yres_virtual)
> + if (var->xoffset + info->var.xres > info->var.xres_virtual ||
> + var->yoffset + info->var.yres > info->var.yres_virtual)
> return -EINVAL;
> }
> info->var.xoffset = var->xoffset;
Tested-and-Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Thanks.
Guan Xuetao
prev parent reply other threads:[~2011-06-15 2:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-14 9:24 [PATCH v2 08/29] fbdev: unicore32: use display information in info not in var for panning Laurent Pinchart
2011-06-15 2:40 ` Guan Xuetao [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1308105657.4727.11.camel@epip-laptop \
--to=gxt@mprc.pku.edu.cn \
--cc=linux-fbdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).