From: Julia Lawall Date: Wed, 30 Dec 2009 14:34:37 +0000 (+0100) Subject: USB: FHCI: Correct the size argument to kzalloc X-Git-Tag: v2.6.34-rc1~215^2~121 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4585ef11d23aa9dbbf776b135ba70577df97587b;p=pandora-kernel.git 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/) // @disable sizeof_type_expr@ type T; T **x; @@ x = <+...sizeof( - T + *x )...+> // Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed