Re: [PATCH] mtd: core: call _get_device() with the master MTD
From: Miquel Raynal
Date: Fri Sep 04 2026 - 14:44:38 EST
On Sun, 16 Aug 2026 18:30:58 +0200, Karl Mehltretter wrote:
> __get_mtd_device() calls the master's _get_device() callback with mtd,
> which may be a partition. __put_mtd_device() passes the master.
>
> This breaks gluebi partitions because gluebi_get_device() uses
> container_of() and therefore requires the master MTD. Pass the master
> to _get_device(), matching _put_device().
>
> [...]
Applied to mtd/fixes, thanks!
[1/1] mtd: core: call _get_device() with the master MTD
commit: 12b31d1acd20b3185bb5f0748db0cf6874c8e9d1
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl