[PATCH v5 24/58] mtd: rawnand: xway: retain open-handle state on removal
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Sun Nov 15 22:47:38 PST 2026
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] mtd: rawnand: xway: missing Fixes trailer for removal lifetime
fix
--
commit b51948d30d82c9ef84098436c692992448f666dd
Author: James Hilliard <james.hilliard1 at gmail.com>
> mtd: rawnand: xway: 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.
>
> Retain the embedded controller and chip across platform-device removal.
>
> 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 freeing struct xway_nand_data via devres on device removal
while open MTD handles can still reference it, should it include a Fixes
tag?
Fixes: 024366750c2e ("mtd: nand: xway: convert to normal platform driver")
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261115-submit-rawnand-retained-handle-lifetime-v1-v5-0-cbc49c5c5e74@gmail.com?part=24
More information about the linux-mtd
mailing list