Re: [PATCH 3/5] mtd: maps: physmap-core: fix reference leak on failed device registration
From: Valery Borovsky
Date: Wed May 06 2026 - 11:44:13 EST
Hi Miquel,
Thanks for the review. I need to withdraw this patch as well, for the same
reason as the rest of the series.
`physmap_flash` is a static `platform_device` without a `.dev.release`
callback. Using `platform_device_put()` triggers a `WARN` in
`device_release()` when the kref hits zero, which is a dealbreaker for
systems with `panic_on_warn=1`.
The kernel-doc NOTE refers to dynamically allocated devices; for static
ones, the original code is actually correct.
I've already sent a withdrawal notice for the whole series (1/5-4/5) to
the cover letter thread. Sorry for the noise.
Best,
Valery Borovsky