Skip to contentSkip to conversation

MTD: 2 patches

PATCH New Maxim Levitsky 2 participants 6 messages Jul 28, 2010 – Aug 5, 2010 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

I recently found bug that I intoduced.
I seen that just once, but it is obivous that code is wrong. Also I want to trim warning on sm_ftl, I think it was a bit too scary.

Best regards,
Maxim Levitsky

#2 lore raw

PATCH 2/2 MTD: update description on sm_ftl

I think that scary description can go now...

---
 drivers/mtd/Kconfig |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
drivers/mtd/Kconfig +7 -4
index f8210bf..8664133 100644
@@ -311,11 +311,14 @@ config SM_FTL
 	select MTD_BLKDEVS
 	select MTD_NAND_ECC
 	help
-	  This enables new and very EXPERMENTAL support for SmartMedia/xD
+	  This enables EXPERMENTAL R/W support for SmartMedia/xD
 	  FTL (Flash translation layer).
-	  Write support isn't yet well tested, therefore this code IS likely to
-	  eat your card, so please don't use it together with valuable data.
-	  Use readonly driver (CONFIG_SSFDC) instead.
+	  Write support is only lightly tested, therefore this driver
+	  isn't recommended to use with valuable data (anyway if you have
+	  valuable data, do backups regardsless of software/hardware you
+	  use, because you never know what will eat your data...)
+	  If you only need R/O access, you can use older R/O driver
+	  (CONFIG_SSFDC)
 
 config MTD_OOPS
 	tristate "Log panic/oops to an MTD buffer"
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/2 MTD: blkdevs: fix crash related to sysfs attributes.

In reply to Maxim Levitsky

Remove the attributes group before disk to avoid use after free

---
 drivers/mtd/mtd_blkdevs.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
drivers/mtd/mtd_blkdevs.c +4 -3
index 03e19c1..75aba70 100644
@@ -409,13 +409,14 @@ int del_mtd_blktrans_dev(struct mtd_blktrans_dev *old)
 		BUG();
 	}
 
-	/* Stop new requests to arrive */
-	del_gendisk(old->disk);
-
 	if (old->disk_attributes)
 		sysfs_remove_group(&disk_to_dev(old->disk)->kobj,
 						old->disk_attributes);
 
+	/* Stop new requests to arrive */
+	del_gendisk(old->disk);
+
+
 	/* Stop the thread */
 	kthread_stop(old->thread);
 
Signature · 1 line
1.7.0.4
#3 lore raw
In reply to Maxim Levitsky
Quoted 5 lines · Maxim Levitsky

Hi,

I recently found bug that I intoduced.
I seen that just once, but it is obivous that code is wrong. Also I want to trim warning on sm_ftl, I think it was a bit too scary.

Any update?

Best regards,
Maxim Levitsky

#4 lore raw
Quoted 8 lines · Maxim Levitsky
Quoted 5 lines · Maxim Levitsky

Hi,

I recently found bug that I intoduced.
I seen that just once, but it is obivous that code is wrong. Also I want to trim warning on sm_ftl, I think it was a bit too scary.

Any update?

Any update?

Quoted 1 line

Best regards,
Maxim Levitsky

#5 lore raw
Quoted 10 lines · Maxim Levitsky
Quoted 8 lines · Maxim Levitsky
Quoted 5 lines · Maxim Levitsky

Hi,

I recently found bug that I intoduced.
I seen that just once, but it is obivous that code is wrong. Also I want to trim warning on sm_ftl, I think it was a bit too scary.

Any update?

Any update?

Taken to my l2-mtd-2.6.git / master

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)