mtd: slram: fix failed registration cleanup
Status from this message: Applied to mtd/next, thanks!
Get series with b4
b4 am [email protected]Versions newest first
Changes in v2 from the cover letter
- 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/[email protected]/
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mtd: slram: remove failed entries from the device listdrivers/ | +16 | 0 replies | |
| 2/2 | mtd: slram: simplify register_device() cleanupdrivers/ | +42 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/2] mtd: slram: fix failed registration cleanup
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/[email protected]/
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(-)
Signature · 1 line
2.51.0