~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/video/xen-fbfront.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
395
395
        spin_lock_init(&info->dirty_lock);
396
396
        spin_lock_init(&info->resize_lock);
397
397
 
398
 
        info->fb = vmalloc(fb_size);
 
398
        info->fb = vzalloc(fb_size);
399
399
        if (info->fb == NULL)
400
400
                goto error_nomem;
401
 
        memset(info->fb, 0, fb_size);
402
401
 
403
402
        info->nr_pages = (fb_size + PAGE_SIZE - 1) >> PAGE_SHIFT;
404
403