projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcab4ea
)
[PATCH] USB: microtek patch to use kzalloc
author
Oliver Neukum
<oliver@neukum.org>
Mon, 24 Oct 2005 20:37:20 +0000
(22:37 +0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 28 Oct 2005 23:47:49 +0000
(16:47 -0700)
here is another one to use kzalloc. Please apply.
Signed-off-by: Oliver Neukum <oliver@neukum.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/image/microtek.c
patch
|
blob
|
history
diff --git
a/drivers/usb/image/microtek.c
b/drivers/usb/image/microtek.c
index c84e1486054f83796bc3e6ee3c8483f11b58d4d3..c89d0769b3da99185f1d101253d858c4e17fa1da 100644
(file)
--- a/
drivers/usb/image/microtek.c
+++ b/
drivers/usb/image/microtek.c
@@
-773,11
+773,10
@@
static int mts_usb_probe(struct usb_interface *intf,
}
- new_desc = k
m
alloc(sizeof(struct mts_desc), GFP_KERNEL);
+ new_desc = k
z
alloc(sizeof(struct mts_desc), GFP_KERNEL);
if (!new_desc)
goto out;
- memset(new_desc, 0, sizeof(*new_desc));
new_desc->urb = usb_alloc_urb(0, GFP_KERNEL);
if (!new_desc->urb)
goto out_kfree;