diff options
Diffstat (limited to 'drivers/mtd/devices/mtdram.c')
-rw-r--r-- | drivers/mtd/devices/mtdram.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/devices/mtdram.c b/drivers/mtd/devices/mtdram.c index bb713fed2f37..1443117fd8f4 100644 --- a/drivers/mtd/devices/mtdram.c +++ b/drivers/mtd/devices/mtdram.c | |||
@@ -91,8 +91,7 @@ static void __exit cleanup_mtdram(void) | |||
91 | { | 91 | { |
92 | if (mtd_info) { | 92 | if (mtd_info) { |
93 | del_mtd_device(mtd_info); | 93 | del_mtd_device(mtd_info); |
94 | if (mtd_info->priv) | 94 | vfree(mtd_info->priv); |
95 | vfree(mtd_info->priv); | ||
96 | kfree(mtd_info); | 95 | kfree(mtd_info); |
97 | } | 96 | } |
98 | } | 97 | } |