projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f74813
)
[PATCH] USB: kzalloc in idmouse
author
Oliver Neukum
<oliver@neukum.org>
Fri, 6 Jan 2006 21:36:27 +0000
(22:36 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 20 Mar 2006 22:49:53 +0000
(14:49 -0800)
another for kzalloc.
Signed-off-by: Oliver Neukum <oliver@neukum.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/idmouse.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/misc/idmouse.c
b/drivers/usb/misc/idmouse.c
index d8cde1017985af8705868a23abcf3ca32cfa9f88..b3aca51243397e7c6b757f33d27166fc005b0af4 100644
(file)
--- 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 = k
m
alloc(sizeof(*dev), GFP_KERNEL);
+ dev = k
z
alloc(sizeof(*dev), GFP_KERNEL);
if (dev == NULL)
return -ENOMEM;
- memset(dev, 0x00, sizeof(*dev));
init_MUTEX(&dev->sem);
dev->udev = udev;