From: Himangi Saraogi Date: Sun, 6 Jul 2014 16:13:42 +0000 (+0530) Subject: thunderbolt: Correct the size argument to devm_kzalloc X-Git-Tag: cleanup-for-v3.18~127^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc51768ba24077c8148067036e1555a8a978bb99;p=pandora-kernel.git thunderbolt: Correct the size argument to devm_kzalloc nhi->rx_rings does not have type as struct tb_ring *, as it is a double pointer so the elements of the array should have pointer type, not structure type. The Coccinelle semantic patch that makes this change is as follows: // @disable sizeof_type_expr@ type T; T **x; @@ x = <+...sizeof( - T + *x )...+> // Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall Cc: Andreas Noever Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed