Re: [PATCH 19/29] s3c-fb: use display information in info not in var for panning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: Jingoo Han <jg1.han@xxxxxxxxxxx>

> ------- Original Message -------
> Sender : Laurent Pinchart<laurent.pinchart@xxxxxxxxxxxxxxxx> 
> Date   : 2011-05-26 07:58 (GMT+09:00)
> Title  : [PATCH 19/29] s3c-fb: use display information in info not in var for
>  panning
> 
> 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@xxxxxxxxxxxxxxxx>
> Cc: Ben Dooks <ben@xxxxxxxxxxxx>
> Cc: InKi Dae <inki.dae@xxxxxxxxxxx>
> ---
>  drivers/video/s3c-fb.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c
> index 3b6cdca..4fce307 100644
> --- a/drivers/video/s3c-fb.c
> +++ b/drivers/video/s3c-fb.c
> @@ -882,7 +882,7 @@ static int s3c_fb_pan_display(struct fb_var_screeninfo *var,
>  		}
>  	}
 > 	/* Offset in bytes to the end of the displayed area */
> -	end_boff = start_boff + var->yres * info->fix.line_length;
> +	end_boff = start_boff + info->var.yres * info->fix.line_length;
>  
>  	/* Temporarily turn off per-vsync update from shadow registers until
>  	 * both start and end addresses are updated to prevent corruption */
> -- 
ÿ淸º{.nÇ+돴윯돪†+%듚ÿ깁負¥Šwÿº{.nÇ+돴¥Š{깰鍼zÿâ왲^n‡r⊆¦zË곷h솳鈺Ú&{àz요z받쀺+€Ê+zf"·hš닱~넮녬iÿÿï곴ÿ묎çz_溫æj:+v돣þ)山øm



[Index of Archives]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Tourism]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux