[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110531142833.GJ14641@dumpdata.com>
Date: Tue, 31 May 2011 10:28:33 -0400
From: Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>
To: Joe Perches <joe@...ches.com>
Cc: Heiko Stübner <heiko@...ech.de>,
Jaya Kumar <jayalk@...works.biz>,
Paul Mundt <lethal@...ux-sh.org>,
Jeremy Fitzhardinge <jeremy.fitzhardinge@...rix.com>,
Jiri Kosina <trivial@...nel.org>, linux-fbdev@...r.kernel.org,
linux-kernel@...r.kernel.org, xen-devel@...ts.xensource.com,
virtualization@...ts.linux-foundation.org
Subject: Re: [TRIVIAL PATCH V2 next 12/15] video: Convert vmalloc/memset to
vzalloc
On Sat, May 28, 2011 at 11:13:33AM -0700, Joe Perches wrote:
> Signed-off-by: Joe Perches <joe@...ches.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@...cle.com> 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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists