diff options
Diffstat (limited to 'drivers/net/chelsio/pm3393.c')
-rw-r--r-- | drivers/net/chelsio/pm3393.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/chelsio/pm3393.c b/drivers/net/chelsio/pm3393.c index b442b585b4b1..50983f9ce4bc 100644 --- a/drivers/net/chelsio/pm3393.c +++ b/drivers/net/chelsio/pm3393.c | |||
@@ -631,10 +631,9 @@ static struct cmac *pm3393_mac_create(adapter_t *adapter, int index) | |||
631 | { | 631 | { |
632 | struct cmac *cmac; | 632 | struct cmac *cmac; |
633 | 633 | ||
634 | cmac = kmalloc(sizeof(*cmac) + sizeof(cmac_instance), GFP_KERNEL); | 634 | cmac = kzalloc(sizeof(*cmac) + sizeof(cmac_instance), GFP_KERNEL); |
635 | if (!cmac) | 635 | if (!cmac) |
636 | return NULL; | 636 | return NULL; |
637 | memset(cmac, 0, sizeof(*cmac)); | ||
638 | 637 | ||
639 | cmac->ops = &pm3393_ops; | 638 | cmac->ops = &pm3393_ops; |
640 | cmac->instance = (cmac_instance *) (cmac + 1); | 639 | cmac->instance = (cmac_instance *) (cmac + 1); |