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:
f238b4e
)
usb/host/fotg210: change kmalloc by kmalloc_array
author
Peter Senna Tschudin
<
[email protected]
>
Mon, 12 Oct 2015 21:22:36 +0000
(23:22 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sat, 17 Oct 2015 06:46:27 +0000
(23:46 -0700)
This patch replaces:
kmalloc(DBG_SCHED_LIMIT * sizeof(*seen), GFP_ATOMIC)
by:
kmalloc_array(DBG_SCHED_LIMIT, sizeof(*seen), GFP_ATOMIC)
as kmalloc_array() should be used for allocating arrays.
Signed-off-by: Peter Senna Tschudin <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/host/fotg210-hcd.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/fotg210-hcd.c
b/drivers/usb/host/fotg210-hcd.c
index ceb696f10710b1ec2d81d972f12525bcabb4ec83..6ef830809c8d36138a5864ef9443c0a92a408c44 100644
(file)
--- a/
drivers/usb/host/fotg210-hcd.c
+++ b/
drivers/usb/host/fotg210-hcd.c
@@
-500,7
+500,7
@@
static ssize_t fill_periodic_buffer(struct debug_buffer *buf)
unsigned i;
__hc32 tag;
- seen = kmalloc
(DBG_SCHED_LIMIT *
sizeof(*seen), GFP_ATOMIC);
+ seen = kmalloc
_array(DBG_SCHED_LIMIT,
sizeof(*seen), GFP_ATOMIC);
if (!seen)
return 0;