summaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc
diff options
context:
space:
mode:
authorOliver Neukum <oliver@neukum.org>2006-01-06 22:36:27 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2006-03-20 14:49:53 -0800
commit092e462a537ba60e5f78ff208c8a95e6fd071fa5 (patch)
tree87546f74115d694060781aa829509bbee963bdf9 /drivers/usb/misc
parent5f7481337cc803926b5c43aac44441f683ff91ed (diff)
downloadblackbird-op-linux-092e462a537ba60e5f78ff208c8a95e6fd071fa5.tar.gz
blackbird-op-linux-092e462a537ba60e5f78ff208c8a95e6fd071fa5.zip
[PATCH] USB: kzalloc in idmouse
another for kzalloc. Signed-off-by: Oliver Neukum <oliver@neukum.name> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/misc')
-rw-r--r--drivers/usb/misc/idmouse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/misc/idmouse.c b/drivers/usb/misc/idmouse.c
index d8cde1017985..b3aca5124339 100644
--- a/drivers/usb/misc/idmouse.c
+++ b/drivers/usb/misc/idmouse.c
@@ -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;
OpenPOWER on IntegriCloud