[PATCH v5 22/58] mtd: rawnand: pasemi: retain open-handle state on removal

sashiko-bot at kernel.org sashiko-bot at kernel.org
Sun Nov 15 22:47:17 PST 2026


Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] mtd: rawnand: pasemi: missing Fixes trailer for removal lifetime
  fix
--

commit b0754a3550f2c89ee82f5ca0bd9b54b4e6ade10a
Author: James Hilliard <james.hilliard1 at gmail.com>

> mtd: rawnand: pasemi: retain open-handle state on removal
>
> Keep chip metadata and controller storage alive until the final MTD
> reference is released. Unregister and disconnect each published chip
> before releasing the resources used by its hardware operations.
>
> Release the LPC region and NAND mapping after disconnection.
>
> Run NAND cleanup during disconnection; the final core-owned put only
> releases retained allocation and layout data.
>
> Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>

[Severity: Low]
Since this fixes premature freeing of the NAND and MTD structures on
driver removal while open handles still exist, should it include a Fixes:
tag?

  Fixes: 846fc31d06e5 ("[MTD] [NAND] pasemi_nand driver")

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261115-submit-rawnand-retained-handle-lifetime-v1-v5-0-cbc49c5c5e74@gmail.com?part=22



More information about the linux-mtd mailing list