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:
092e462
)
[PATCH] USB: kzalloc in ldusb
author
Oliver Neukum
<oliver@neukum.org>
Fri, 6 Jan 2006 21:40:02 +0000
(22:40 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 20 Mar 2006 22:49:53 +0000
(14:49 -0800)
another one for kzalloc
Signed-off-by: Oliver Neukum <oliver@neukum.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/ldusb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/misc/ldusb.c
b/drivers/usb/misc/ldusb.c
index e2d1198623eb08c2e792c1d46338cc58026de115..f6bdaf08a80f4c62da5c8746f0d363f97b93d40c 100644
(file)
--- a/
drivers/usb/misc/ldusb.c
+++ b/
drivers/usb/misc/ldusb.c
@@
-626,12
+626,11
@@
static int ld_usb_probe(struct usb_interface *intf, const struct usb_device_id *
/* allocate memory for our device state and intialize it */
- dev = k
m
alloc(sizeof(*dev), GFP_KERNEL);
+ dev = k
z
alloc(sizeof(*dev), GFP_KERNEL);
if (dev == NULL) {
dev_err(&intf->dev, "Out of memory\n");
goto exit;
}
- memset(dev, 0x00, sizeof(*dev));
init_MUTEX(&dev->sem);
dev->intf = intf;
init_waitqueue_head(&dev->read_wait);