From: Julia Lawall Date: Wed, 11 Aug 2010 01:01:18 +0000 (-0700) Subject: drivers/scsi/aic94xx/aic94xx_init.c: correct the size argument to kmalloc X-Git-Tag: v2.6.36-rc1~266 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85bc081f44d53e3ac268c59275cc3b9b5afae04a;p=pandora-kernel.git drivers/scsi/aic94xx/aic94xx_init.c: correct the size argument to kmalloc In each case, the destination of the allocation has type struct **, 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 Cc: Rolf Eike Beer Cc: Joe Perches Cc: James Bottomley Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed