From: Julia Lawall Date: Tue, 29 Dec 2009 19:15:23 +0000 (+0100) Subject: mtd: physmap_of: Correct the size argument to kzalloc X-Git-Tag: v2.6.35-rc1~465^2~143 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e026255f7d0e56006a147b190ae23be95cb0a9bd;p=pandora-kernel.git mtd: physmap_of: Correct the size argument to kzalloc mtd_list has type struct mtd_info **, not struct mtd_info *, so the elements of the array should have pointer type, not structure type. 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: David Woodhouse --- Reading git-diff-tree failed