[PATCH] mtd: core: call _get_device() with the master MTD

Miquel Raynal miquel.raynal at bootlin.com
Fri Sep 4 10:38:03 PDT 2026


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




More information about the linux-mtd mailing list