mtd/drivers/mtd ftl.c,1.53,1.54
David Woodhouse
dwmw2 at infradead.org
Tue Nov 16 13:33:18 EST 2004
- Previous message: mtd/drivers/mtd/chips cfi_cmdset_0001.c, 1.163,
1.164 cfi_cmdset_0002.c, 1.110, 1.111 cfi_cmdset_0020.c, 1.15,
1.16 chipreg.c, 1.16, 1.17 jedec_probe.c, 1.57,
1.58 map_absent.c, 1.4, 1.5 map_ram.c, 1.20, 1.21 map_rom.c,
1.21, 1.22
- Next message: mtd/include/linux/mtd partitions.h,1.15,1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv30863
Modified Files:
ftl.c
Log Message:
Free all data structures on partition going away.
Index: ftl.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/ftl.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- ftl.c 9 Aug 2004 13:55:43 -0000 1.53
+++ ftl.c 16 Nov 2004 18:33:15 -0000 1.54
@@ -1067,16 +1067,18 @@
partition->mbd.blksize = SECTOR_SIZE;
partition->mbd.tr = tr;
partition->mbd.devnum = -1;
- if (add_mtd_blktrans_dev((void *)partition))
- kfree(partition);
-
- } else
- kfree(partition);
+ if (!add_mtd_blktrans_dev((void *)partition))
+ return;
+ }
+
+ ftl_freepart(partition);
+ kfree(partition);
}
static void ftl_remove_dev(struct mtd_blktrans_dev *dev)
{
del_mtd_blktrans_dev(dev);
+ ftl_freepart((partition_t *)dev);
kfree(dev);
}
- Previous message: mtd/drivers/mtd/chips cfi_cmdset_0001.c, 1.163,
1.164 cfi_cmdset_0002.c, 1.110, 1.111 cfi_cmdset_0020.c, 1.15,
1.16 chipreg.c, 1.16, 1.17 jedec_probe.c, 1.57,
1.58 map_absent.c, 1.4, 1.5 map_ram.c, 1.20, 1.21 map_rom.c,
1.21, 1.22
- Next message: mtd/include/linux/mtd partitions.h,1.15,1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the linux-mtd-cvs
mailing list