Skip to contentSkip to conversation

Fix "ubi part" cmd re-entrancy

PATCH New Karl Beldan 2 participants 2 messages Sep 23, 2010 – Sep 27, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix "ubi part" cmd re-entrancy

Commit 2ee951ba (UBI: Enable re-initializing of the "ubi part" command) reset mtd_devs in ubi_exit() but missed ubi_init()'s failure path.

---
 drivers/mtd/ubi/build.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/mtd/ubi/build.c +1 -0
index 354e80b..3ea0e6c 100644
@@ -1045,6 +1045,7 @@ out_version:
 out_class:
 	class_destroy(ubi_class);
 out:
+	mtd_devs = 0;
 	ubi_err("UBI error: cannot initialize UBI, error %d", err);
 	return err;
 }
Signature · 1 line
1.7.1.422.g049e9
#1 lore raw

PATCH 1/1 Fix "ubi part" cmd re-entrancy

Quoted 2 lines · On Thursday 23 September 2010 10:46:31 Karl Beldan wrote:

Commit 2ee951ba (UBI: Enable re-initializing of the "ubi part" command) reset mtd_devs in ubi_exit() but missed ubi_init()'s failure path.

Applied to u-boot-ubi/master. Thanks.

Cheers,
Stefan

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de