WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [TRIVIAL PATCH V2 next 12/15] video: Convert vmalloc/mem

On Sat, May 28, 2011 at 11:13:33AM -0700, Joe Perches wrote:
> Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>

Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> on the:

> diff --git a/drivers/video/xen-fbfront.c b/drivers/video/xen-fbfront.c
> index a20218c..beac52f 100644
> --- a/drivers/video/xen-fbfront.c
> +++ b/drivers/video/xen-fbfront.c
> @@ -395,10 +395,9 @@ static int __devinit xenfb_probe(struct xenbus_device 
> *dev,
>       spin_lock_init(&info->dirty_lock);
>       spin_lock_init(&info->resize_lock);
>  
> -     info->fb = vmalloc(fb_size);
> +     info->fb = vzalloc(fb_size);
>       if (info->fb == NULL)
>               goto error_nomem;
> -     memset(info->fb, 0, fb_size);
>  
>       info->nr_pages = (fb_size + PAGE_SIZE - 1) >> PAGE_SHIFT;

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>