]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/video/valkyriefb.c
hugetlbfs: handle pages higher order than MAX_ORDER
[linux-2.6-omap-h63xx.git] / drivers / video / valkyriefb.c
index ad66f070acb8def985e91d0a6feafaaffed61b02..7b0cef9ca8f98d52fcc927050204f1ec874194b8 100644 (file)
@@ -356,10 +356,9 @@ int __init valkyriefb_init(void)
        }
 #endif /* ppc (!CONFIG_MAC) */
 
-       p = kmalloc(sizeof(*p), GFP_ATOMIC);
+       p = kzalloc(sizeof(*p), GFP_ATOMIC);
        if (p == 0)
                return -ENOMEM;
-       memset(p, 0, sizeof(*p));
 
        /* Map in frame buffer and registers */
        if (!request_mem_region(frame_buffer_phys, 0x100000, "valkyriefb")) {