From: Ruoyu Wang <ruoyuw560@gmail.com>
To: Miquel Raynal <miquel.raynal@bootlin.com>,
Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>
Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
Ruoyu Wang <ruoyuw560@gmail.com>
Subject: [PATCH v2 0/2] mtd: slram: fix failed registration cleanup
Date: Tue, 9 Jun 2026 16:45:26 +0800 [thread overview]
Message-ID: <20260609084528.5-1-ruoyuw560@gmail.com> (raw)
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/
next reply other threads:[~2026-06-09 8:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-09 8:45 Ruoyu Wang [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260609084528.5-1-ruoyuw560@gmail.com \
--to=ruoyuw560@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=miquel.raynal@bootlin.com \
--cc=richard@nod.at \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox