Skip to content

Commit

Permalink
[PATCH] USB: kzalloc in idmouse
Browse files Browse the repository at this point in the history
another 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 5f74813 commit 092e462
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/usb/misc/idmouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,9 @@ static int idmouse_probe(struct usb_interface *interface,
return -ENODEV;

/* allocate memory for our device state and initialize it */
dev = kmalloc(sizeof(*dev), GFP_KERNEL);
dev = kzalloc(sizeof(*dev), GFP_KERNEL);
if (dev == NULL)
return -ENOMEM;
memset(dev, 0x00, sizeof(*dev));

init_MUTEX(&dev->sem);
dev->udev = udev;
Expand Down

0 comments on commit 092e462

Please sign in to comment.