Skip to content

Commit

Permalink
[PATCH] USB: kzalloc in cytherm
Browse files Browse the repository at this point in the history
another one for kzalloc.

Signed-off-by: Oliver Neukum <oliver@neukum.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Mar 20, 2006
1 parent 51b208d commit 5f74813
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/usb/misc/cytherm.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,11 @@ static int cytherm_probe(struct usb_interface *interface,
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);

Expand Down

0 comments on commit 5f74813

Please sign in to comment.