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

Rafał Miłecki zajec5 at gmail.com
Fri May 31 03:57:25 EDT 2013


2013/5/30 Libo Chen <clbchenlibo.chen at huawei.com>:
> 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.

I think you should use
mtd: bcm47xxsflash:
prefix for both patches, but Artem or David may want to comment on that.

Nice trick with that devm_kzalloc, I didn't know it.

-- 
Rafał



More information about the linux-mtd mailing list