From: Mike Frysinger Date: Sat, 28 Aug 2010 20:42:04 +0000 (-0400) Subject: mtd: Blackfin NFC: fix invalid free in remove() X-Git-Tag: v2.6.36-rc5~34^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b865d5efd9205b131dd9a43a6f450c05d38aaa1;p=pandora-kernel.git 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 Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed