Skip to content

mtd: ubi: Fix some initialisation failure cases

Ben Hutchings linux-mtd 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mtd: ubi: Restore missing cleanup on ubi_init() failure pathdrivers/mtd/ubi/build.c+4 -10 replies
2/2mtd: ubi: Ignore all debugfs initialisation failuresdrivers/mtd/ubi/build.c drivers/mtd/ubi/debug.c drivers/mtd/ubi/debug.h+11 -361 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] mtd: ubi: Fix some initialisation failure cases

ubi currently fails to initialise if debugfs is enabled at build time but disabled at boot time (CONFIG_DEBUG_FS is enabled and debugfs=off is set on the kernel command line). Errors from debugfs should always be ignored but this wasn't done everywhere.

While fixing this I also noticed that a recent change to ubi removed some cleanup from the ubi_init() failure path that I think is still needed.

This series should fix both problems.

Ben.

Ben Hutchings (2):
mtd: ubi: Restore missing cleanup on ubi_init() failure path
mtd: ubi: Ignore all debugfs initialisation failures

 drivers/mtd/ubi/build.c | 15 ++++++---------
 drivers/mtd/ubi/debug.c | 33 +++++++--------------------------
 drivers/mtd/ubi/debug.h |  4 ++--
 3 files changed, 15 insertions(+), 37 deletions(-)
Signature · 6 lines
2.39.2


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/