diff options
author | Julia Lawall <julia@diku.dk> | 2009-12-30 15:34:37 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-02 23:54:00 +0100 |
commit | 4585ef11d23aa9dbbf776b135ba70577df97587b (patch) | |
tree | d12fd11671b7f30b0de88a8533ffc0785eff1183 /REPORTING-BUGS | |
parent | USB: cypress_m8: use put_unaligned_le32() where necessary (diff) | |
download | linux-4585ef11d23aa9dbbf776b135ba70577df97587b.tar.xz linux-4585ef11d23aa9dbbf776b135ba70577df97587b.zip |
USB: FHCI: Correct the size argument to kzalloc
urb_priv->tds has type struct td **, not struct td *, so the
elements of the array should have pointer type, not structure type.
Convert kzalloc to kcalloc as well.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@disable sizeof_type_expr@
type T;
T **x;
@@
x =
<+...sizeof(
- T
+ *x
)...+>
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions