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/mct_u232.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/mct_u232.c')
-rw-r--r-- | drivers/usb/serial/mct_u232.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/mct_u232.c b/drivers/usb/serial/mct_u232.c index b6d6cab9c859..35bd29b6c408 100644 --- a/drivers/usb/serial/mct_u232.c +++ b/drivers/usb/serial/mct_u232.c | |||
@@ -348,10 +348,9 @@ static int mct_u232_startup (struct usb_serial *serial) | |||
348 | struct mct_u232_private *priv; | 348 | struct mct_u232_private *priv; |
349 | struct usb_serial_port *port, *rport; | 349 | struct usb_serial_port *port, *rport; |
350 | 350 | ||
351 | priv = kmalloc(sizeof(struct mct_u232_private), GFP_KERNEL); | 351 | priv = kzalloc(sizeof(struct mct_u232_private), GFP_KERNEL); |
352 | if (!priv) | 352 | if (!priv) |
353 | return -ENOMEM; | 353 | return -ENOMEM; |
354 | memset(priv, 0, sizeof(struct mct_u232_private)); | ||
355 | spin_lock_init(&priv->lock); | 354 | spin_lock_init(&priv->lock); |
356 | usb_set_serial_port_data(serial->port[0], priv); | 355 | usb_set_serial_port_data(serial->port[0], priv); |
357 | 356 | ||