[PATCH RESEND 1/2] mtd: bcm47: convert kzalloc to avoid invalid access

Brian Norris computersforpeace at gmail.com
Thu Aug 22 15:39:49 EDT 2013


On Thu, May 30, 2013 at 10:22:12AM +0800, Libo Chen wrote:
> 
> mtd is just member of bcm47xxsflash, so we should free bcm47xxsflash not its member.
> So I use devm_kazlloc instead of kazlloc to avoid it.
> 
> * Changelog:
>    convert to devm_kzalloc
> 
> Signed-off-by: Libo chen <libo.chen at huawei.com>
> Suggested-by: Andy Shevchenko <andy.shevchenko at gmail.com>

Resolved a conflict and pushed to l2-mtd.git. Thanks!

Brian



More information about the linux-mtd mailing list