On Fri, Nov 5, 2010 at 11:08 AM, Joe Perches <joe@xxxxxxxxxxx> wrote: > Signed-off-by: Joe Perches <joe@xxxxxxxxxxx> > --- > Âdrivers/video/arcfb.c    Â|  Â5 ++--- > Âdrivers/video/broadsheetfb.c |  Â4 +--- > Âdrivers/video/hecubafb.c   |  Â5 ++--- > Âdrivers/video/metronomefb.c Â|  Â4 +--- > Âdrivers/video/xen-fbfront.c Â|  Â3 +-- > Â5 files changed, 7 insertions(+), 14 deletions(-) > > diff --git a/drivers/video/arcfb.c b/drivers/video/arcfb.c > index 3ec4923..86573e2 100644 > --- a/drivers/video/arcfb.c > +++ b/drivers/video/arcfb.c > @@ -515,11 +515,10 @@ static int __devinit arcfb_probe(struct platform_device *dev) > >    Â/* We need a flat backing store for the Arc's >      less-flat actual paged framebuffer */ > -    if (!(videomemory = vmalloc(videomemorysize))) > +    videomemory = vmalloc(videomemorysize); typo? > +    if (!videomemory) >        Âreturn retval; > > -    memset(videomemory, 0, videomemorysize); > - >    Âinfo = framebuffer_alloc(sizeof(struct arcfb_par), &dev->dev); >    Âif (!info) >        Âgoto err; > diff --git a/drivers/video/broadsheetfb.c b/drivers/video/broadsheetfb.c > index ebda687..377dde3 100644 > --- a/drivers/video/broadsheetfb.c > +++ b/drivers/video/broadsheetfb.c > @@ -1101,12 +1101,10 @@ static int __devinit broadsheetfb_probe(struct platform_device *dev) > >    Âvideomemorysize = roundup((dpyw*dpyh), PAGE_SIZE); > > -    videomemory = vmalloc(videomemorysize); > +    videomemory = vzalloc(videomemorysize); >    Âif (!videomemory) >        Âgoto err_fb_rel; > > -    memset(videomemory, 0, videomemorysize); > - >    Âinfo->screen_base = (char *)videomemory; >    Âinfo->fbops = &broadsheetfb_ops; > > diff --git a/drivers/video/hecubafb.c b/drivers/video/hecubafb.c > index c77bcc6..a941e6f 100644 > --- a/drivers/video/hecubafb.c > +++ b/drivers/video/hecubafb.c > @@ -231,11 +231,10 @@ static int __devinit hecubafb_probe(struct platform_device *dev) > >    Âvideomemorysize = (DPY_W*DPY_H)/8; > > -    if (!(videomemory = vmalloc(videomemorysize))) > +    videomemory = vzalloc(videomemorysize); > +    if (!videomemory) >        Âreturn retval; > > -    memset(videomemory, 0, videomemorysize); > - >    Âinfo = framebuffer_alloc(sizeof(struct hecubafb_par), &dev->dev); >    Âif (!info) >        Âgoto err_fballoc; > diff --git a/drivers/video/metronomefb.c b/drivers/video/metronomefb.c > index 63ed3b7..c0c358c 100644 > --- a/drivers/video/metronomefb.c > +++ b/drivers/video/metronomefb.c > @@ -628,12 +628,10 @@ static int __devinit metronomefb_probe(struct platform_device *dev) >    Â/* we need to add a spare page because our csum caching scheme walks >     * to the end of the page */ >    Âvideomemorysize = PAGE_SIZE + (fw * fh); > -    videomemory = vmalloc(videomemorysize); > +    videomemory = vzalloc(videomemorysize); >    Âif (!videomemory) >        Âgoto err_fb_rel; > > -    memset(videomemory, 0, videomemorysize); > - >    Âinfo->screen_base = (char __force __iomem *)videomemory; >    Âinfo->fbops = &metronomefb_ops; > > diff --git a/drivers/video/xen-fbfront.c b/drivers/video/xen-fbfront.c > index 428d273..81fcaea 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; > > -- > 1.7.3.1.g432b3.dirty > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at Âhttp://vger.kernel.org/majordomo-info.html > Please read the FAQ at Âhttp://www.tux.org/lkml/ > -- Regards dave _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/virtualization