X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fatm%2Flec.c;h=c4fc722fef9a2de2362b1b5ef52abba92d662996;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=b4aa489849dfefc0185395415de8e88c31b303ab;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/net/atm/lec.c b/net/atm/lec.c index b4aa48984..c4fc722fe 100644 --- a/net/atm/lec.c +++ b/net/atm/lec.c @@ -4,6 +4,7 @@ * */ +#include #include #include #include @@ -1811,11 +1812,12 @@ make_entry(struct lec_priv *priv, unsigned char *mac_addr) { struct lec_arp_table *to_return; - to_return = kzalloc(sizeof(struct lec_arp_table), GFP_ATOMIC); + to_return = kmalloc(sizeof(struct lec_arp_table), GFP_ATOMIC); if (!to_return) { printk("LEC: Arp entry kmalloc failed\n"); return NULL; } + memset(to_return, 0, sizeof(struct lec_arp_table)); memcpy(to_return->mac_addr, mac_addr, ETH_ALEN); init_timer(&to_return->timer); to_return->timer.function = lec_arp_expire_arp;