aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorKarl Mehltretter <kmehltretter@gmail.com>2026-08-16 18:30:58 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2026-09-04 19:11:26 +0200
commit12b31d1acd20b3185bb5f0748db0cf6874c8e9d1 (patch)
treedc17598d7146e153b51d02aaa75c902c92e70989 /include/linux
parent26300879cd8e4612dce66bb8f6ff7cd35fcf3e59 (diff)
mtd: core: call _get_device() with the master MTD
__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(). Fixes: 46b5889cc2c5 ("mtd: implement proper partition handling") Assisted-by: Codex:gpt-5.6-sol Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions