Skip to content

mtd: slram: fix failed registration cleanup

Ruoyu Wang linux-mtd lkml stable 1 version Applied

Status from this message: Applied to mtd/next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 1 replyApplied

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 filesSizeRepliesApplied
1/2mtd: slram: remove failed entries from the device listdrivers/mtd/devices/slram.c+16 -60 replies
2/2mtd: slram: simplify register_device() cleanupdrivers/mtd/devices/slram.c+42 -440 replies

Reviews trailers per patch

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

Read the v2 thread

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