intel: use kzalloc
authorDave Airlie <airlied@redhat.com>
Wed, 4 Jun 2008 03:09:20 +0000 (13:09 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 4 Jun 2008 03:09:20 +0000 (13:09 +1000)
linux-core/intel_display.c

index 3f5afac..6493af1 100644 (file)
@@ -1491,7 +1491,7 @@ struct drm_framebuffer *intel_user_framebuffer_create(struct drm_device *dev,
 {
        struct intel_framebuffer *intel_fb;
 
-       intel_fb = kmalloc(sizeof(*intel_fb), GFP_KERNEL);
+       intel_fb = kzalloc(sizeof(*intel_fb), GFP_KERNEL);
        if (!intel_fb)
                return NULL;