aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorOleksandr Ocheretnyi <[email protected]>2022-04-17 11:46:47 -0700
committerMiquel Raynal <[email protected]>2022-04-21 09:29:05 +0200
commit37c5f9e80e015d0df17d0c377c18523002986851 (patch)
tree266f266ba5b26bff162dbaead07552e0fd3f2772 /lib/mpi/mpi-sub-ui.c
parent084c16ab423a8890121b902b405823bfec5b4365 (diff)
mtd: fix 'part' field data corruption in mtd_info
Commit 46b5889cc2c5 ("mtd: implement proper partition handling") started using "mtd_get_master_ofs()" in mtd callbacks to determine memory offsets by means of 'part' field from mtd_info, what previously was smashed accessing 'master' field in the mtd_set_dev_defaults() method. That provides wrong offset what causes hardware access errors. Just make 'part', 'master' as separate fields, rather than using union type to avoid 'part' data corruption when mtd_set_dev_defaults() is called. Fixes: 46b5889cc2c5 ("mtd: implement proper partition handling") Signed-off-by: Oleksandr Ocheretnyi <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions