From: Brian Norris Date: Fri, 29 Mar 2013 04:28:56 +0000 (-0700) Subject: mtd: fsl_ifc_nand: remove incorrect kfree() X-Git-Tag: v3.12-rc1~82^2~181 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b966a40a3854e1263b3528ef95bc9e6017e8e515;p=pandora-kernel.git mtd: fsl_ifc_nand: remove incorrect kfree() The struct fsl_ifc_mtd is allocated with devm_kzalloc, so its memory is "managed" automatically by the kernel. That is, we do not need to free it explicitly; it will be freed when the device is removed. And we *certainly* shouldn't free it with a regular kfree(). Signed-off-by: Brian Norris Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed