Tag: 4585ef11d23aa9dbbf776b135ba70577df97587b

USB: FHCI: Correct the size argument to kzalloc

Author: Julia Lawall <julia@diku.dk> 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/) // @disable sizeof_type_expr@ type T; T **x; @@ x = // …

Continue reading