diff options
Diffstat (limited to 'drivers/usb/atm/cxacru.c')
-rw-r--r-- | drivers/usb/atm/cxacru.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c index 0b02a6d9f243..675fdbd5967e 100644 --- a/drivers/usb/atm/cxacru.c +++ b/drivers/usb/atm/cxacru.c | |||
@@ -673,14 +673,12 @@ static int cxacru_bind(struct usbatm_data *usbatm_instance, | |||
673 | int ret; | 673 | int ret; |
674 | 674 | ||
675 | /* instance init */ | 675 | /* instance init */ |
676 | instance = kmalloc(sizeof(*instance), GFP_KERNEL); | 676 | instance = kzalloc(sizeof(*instance), GFP_KERNEL); |
677 | if (!instance) { | 677 | if (!instance) { |
678 | dbg("cxacru_bind: no memory for instance data"); | 678 | dbg("cxacru_bind: no memory for instance data"); |
679 | return -ENOMEM; | 679 | return -ENOMEM; |
680 | } | 680 | } |
681 | 681 | ||
682 | memset(instance, 0, sizeof(*instance)); | ||
683 | |||
684 | instance->usbatm = usbatm_instance; | 682 | instance->usbatm = usbatm_instance; |
685 | instance->modem_type = (struct cxacru_modem_type *) id->driver_info; | 683 | instance->modem_type = (struct cxacru_modem_type *) id->driver_info; |
686 | 684 | ||