]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/wan/sealevel.c
[NET]: Make device event notification network namespace safe
[linux-2.6-omap-h63xx.git] / drivers / net / wan / sealevel.c
index 131358108c5a02ffdb6c2d63357decf38515f0dc..11276bf3149f081c8bd081bc7ead3c6515324d88 100644 (file)
@@ -270,11 +270,10 @@ static __init struct slvl_board *slvl_init(int iobase, int irq,
                return NULL;
        }
        
-       b = kmalloc(sizeof(struct slvl_board), GFP_KERNEL);
+       b = kzalloc(sizeof(struct slvl_board), GFP_KERNEL);
        if(!b)
                goto fail3;
 
-       memset(b, 0, sizeof(*b));
        if (!(b->dev[0]= slvl_alloc(iobase, irq)))
                goto fail2;