]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: fsl_ifc_nand: remove incorrect kfree()
authorBrian Norris <computersforpeace@gmail.com>
Fri, 29 Mar 2013 04:28:56 +0000 (21:28 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 5 Aug 2013 17:58:08 +0000 (18:58 +0100)
commita1802f4312d4b464165dd474b2f455dac7255ac0
treedd59d948f14d36b433258101d99d627c70cd7f3a
parentdecf52087bcb18c5b0e79b8525fd7057a8dec389
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 <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/fsl_ifc_nand.c