]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mtd: Blackfin NFC: fix invalid free in remove()
authorMike Frysinger <vapier@gentoo.org>
Sat, 28 Aug 2010 20:42:04 +0000 (16:42 -0400)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 13 Sep 2010 07:49:03 +0000 (08:49 +0100)
commit8b865d5efd9205b131dd9a43a6f450c05d38aaa1
treef84291bbbda866bcd86227d5ecc369d52583a7bc
parenteac15a429a27cb74115daaf4c1127c5e854d50e4
mtd: Blackfin NFC: fix invalid free in remove()

Since info->mtd isn't dynamically allocated, we shouldn't attempt to
kfree() it.  Otherwise we get random fun corruption when unloading
the driver built as a module.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/bf5xx_nand.c