From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Date: Tue, 31 May 2011 14:28:33 +0000 Subject: Re: [TRIVIAL PATCH V2 next 12/15] video: Convert vmalloc/memset to Message-Id: <20110531142833.GJ14641@dumpdata.com> List-Id: References: <77538de911b8af99f68b7bcfbaaedce8e40db04f.1306603968.git.joe@perches.com> <201105281948.12941.heiko@sntech.de> <1306606413.20336.9.camel@Joe-Laptop> In-Reply-To: <1306606413.20336.9.camel@Joe-Laptop> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Joe Perches Cc: Heiko =?iso-8859-1?Q?St=FCbner?= , Jaya Kumar , Paul Mundt , Jeremy Fitzhardinge , Jiri Kosina , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, xen-devel@lists.xensource.com, virtualization@lists.linux-foundation.org On Sat, May 28, 2011 at 11:13:33AM -0700, Joe Perches wrote: > Signed-off-by: Joe Perches Acked-by: Konrad Rzeszutek Wilk 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;