From linux-usb-devel-admin@lists.sourceforge.net Fri Jan 6 13:28:33 2006 From: Oliver Neukum To: Erik Rigtorp Content-Disposition: inline Message-Id: <200601062224.56945.oliver@neukum.org> Subject: USB: kzalloc in cytherm Date: Fri, 6 Jan 2006 22:24:56 +0100 another one for kzalloc. Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- drivers/usb/misc/cytherm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- gregkh-2.6.orig/drivers/usb/misc/cytherm.c +++ gregkh-2.6/drivers/usb/misc/cytherm.c @@ -351,12 +351,11 @@ static int cytherm_probe(struct usb_inte struct usb_cytherm *dev = NULL; int retval = -ENOMEM; - dev = kmalloc (sizeof(struct usb_cytherm), GFP_KERNEL); + dev = kzalloc (sizeof(struct usb_cytherm), GFP_KERNEL); if (dev == NULL) { dev_err (&interface->dev, "Out of memory\n"); goto error; } - memset (dev, 0x00, sizeof (*dev)); dev->udev = usb_get_dev(udev);