Linux-mtd Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mtd: slram: fix failed registration cleanup
@ 2026-06-09  8:45 Ruoyu Wang
  2026-06-09  8:45 ` [PATCH v2 1/2] mtd: slram: remove failed entries from the device list Ruoyu Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ruoyu Wang @ 2026-06-09  8:45 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra
  Cc: linux-mtd, linux-kernel, Ruoyu Wang

This splits the previous slram patch into a backportable fix and a
follow-up cleanup.

Patch 1 fixes the dangling list entry on register_device() failure and
carries Fixes and stable tags.

Patch 2 is a cleanup which uses local variables while initializing the
new entry and publishes the list entry only after mtd_device_register()
succeeds.

Changes in v2:
- Split the original patch into a fix first and a cleanup second.
- Add Fixes and Cc: stable tags to the fix.
- Link to v1: https://lore.kernel.org/all/20260608162939.6-1-ruoyuw560@gmail.com/

Ruoyu Wang (2):
  mtd: slram: remove failed entries from the device list
  mtd: slram: simplify register_device() cleanup

 drivers/mtd/devices/slram.c | 96 ++++++++++++++++++++-----------------
 1 file changed, 52 insertions(+), 44 deletions(-)

-- 
2.51.0

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-06-11  7:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-09  8:45 [PATCH v2 0/2] mtd: slram: fix failed registration cleanup Ruoyu Wang
2026-06-09  8:45 ` [PATCH v2 1/2] mtd: slram: remove failed entries from the device list Ruoyu Wang
2026-06-09  8:45 ` [PATCH v2 2/2] mtd: slram: simplify register_device() cleanup Ruoyu Wang
2026-06-11  7:21 ` [PATCH v2 0/2] mtd: slram: fix failed registration cleanup Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox