From: Libo Chen Date: Thu, 30 May 2013 02:22:12 +0000 (+0800) Subject: mtd: bcm47xxsflash: convert kzalloc to avoid invalid access X-Git-Tag: v3.12-rc1~82^2~8 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2b1bd1422d9385cc5f463e3cc6ea0cbe7e98b70;p=pandora-kernel.git mtd: bcm47xxsflash: convert kzalloc to avoid invalid access 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 Suggested-by: Andy Shevchenko Reviewed-by: Andy Shevchenko [Brian: fixed conflicts] Signed-off-by: Brian Norris Signed-off-by: David Woodhouse --- Reading git-diff-tree failed