git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
USB: FHCI: Correct the size argument to kzalloc
[safe/jmp/linux-2.6]
/
drivers
/
usb
/
host
/
fhci-hcd.c
diff --git
a/drivers/usb/host/fhci-hcd.c
b/drivers/usb/host/fhci-hcd.c
index
78e7c3c
..
ed4b87c
100644
(file)
--- a/
drivers/usb/host/fhci-hcd.c
+++ b/
drivers/usb/host/fhci-hcd.c
@@
-433,7
+433,7
@@
static int fhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb,
return -ENOMEM;
/* allocate the private part of the URB */
- urb_priv->tds = k
zalloc(size * sizeof(struct td
), mem_flags);
+ urb_priv->tds = k
calloc(size, sizeof(*urb_priv->tds
), mem_flags);
if (!urb_priv->tds) {
kfree(urb_priv);
return -ENOMEM;