Pull ia64-clocksource into release branch
[pandora-kernel.git] / drivers / net / shaper.c
index e886e8d..4c3d98f 100644 (file)
@@ -600,10 +600,9 @@ static int __init shaper_init(void)
                return -ENODEV;
 
        alloc_size = sizeof(*dev) * shapers;
-       devs = kmalloc(alloc_size, GFP_KERNEL);
+       devs = kzalloc(alloc_size, GFP_KERNEL);
        if (!devs)
                return -ENOMEM;
-       memset(devs, 0, alloc_size);
 
        for (i = 0; i < shapers; i++) {