Tag: 85bc081f44d53e3ac268c59275cc3b9b5afae04a

drivers/scsi/aic94xx/aic94xx_init.c: correct the size argument to kmalloc

Author: Julia Lawall <julia@diku.dk> 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 = // Signed-off-by: Julia Lawall Cc: …

Continue reading