Re: [PATCH] drivers/mtd/devices/bcm47xxsflash.c: correct argument to kfree

2013-06-08 Thread Rafał Miłecki
2013/6/8 Julia Lawall : > From: Julia Lawall > > The argument to kfree should not be the address of a structure field. > The argument is adjusted to correspond to what is found in the subsequent > remove function. This was already addressed in [PATCH RESEND 1/2] mtd: bcm47: convert kzalloc to avo

[PATCH] drivers/mtd/devices/bcm47xxsflash.c: correct argument to kfree

2013-06-08 Thread Julia Lawall
From: Julia Lawall The argument to kfree should not be the address of a structure field. The argument is adjusted to correspond to what is found in the subsequent remove function. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression e; identif