[NET]: More kzalloc conversions.

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Andrew Morton
2006-04-07 14:52:59 -07:00
committed by David S. Miller
parent 31380de95c
commit 77d04bd957
5 changed files with 8 additions and 22 deletions

View File

@@ -55,15 +55,12 @@ int alloc_divert_blk(struct net_device *dev)
dev->divert = NULL;
if (dev->type == ARPHRD_ETHER) {
dev->divert = (struct divert_blk *)
kmalloc(alloc_size, GFP_KERNEL);
dev->divert = kzalloc(alloc_size, GFP_KERNEL);
if (dev->divert == NULL) {
printk(KERN_INFO "divert: unable to allocate divert_blk for %s\n",
dev->name);
return -ENOMEM;
}
memset(dev->divert, 0, sizeof(struct divert_blk));
dev_hold(dev);
}