diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-02-27 15:29:43 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-03-20 17:49:59 -0500 |
commit | 80b6ca48321974a6566a1c9048ba34f60420bca6 (patch) | |
tree | a350e3cf6b794081c13c89d5b1913b2c1207570d /drivers/usb/serial/visor.c | |
parent | d54a5cb6484705f7808b337917cc7598f2f971c3 (diff) |
[PATCH] USB: kzalloc() conversion for rest of drivers/usb
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/visor.c')
-rw-r--r-- | drivers/usb/serial/visor.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c index 11a48d874752..f5c3841d4843 100644 --- a/drivers/usb/serial/visor.c +++ b/drivers/usb/serial/visor.c | |||
@@ -763,10 +763,9 @@ static int generic_startup(struct usb_serial *serial) | |||
763 | int i; | 763 | int i; |
764 | 764 | ||
765 | for (i = 0; i < serial->num_ports; ++i) { | 765 | for (i = 0; i < serial->num_ports; ++i) { |
766 | priv = kmalloc (sizeof(*priv), GFP_KERNEL); | 766 | priv = kzalloc (sizeof(*priv), GFP_KERNEL); |
767 | if (!priv) | 767 | if (!priv) |
768 | return -ENOMEM; | 768 | return -ENOMEM; |
769 | memset (priv, 0x00, sizeof(*priv)); | ||
770 | spin_lock_init(&priv->lock); | 769 | spin_lock_init(&priv->lock); |
771 | usb_set_serial_port_data(serial->port[i], priv); | 770 | usb_set_serial_port_data(serial->port[i], priv); |
772 | } | 771 | } |