]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mtd: parsers: bcm47xxpart: print correct offset on read error
authorRafał Miłecki <rafal@milecki.pl>
Thu, 17 Mar 2022 11:43:16 +0000 (12:43 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 6 Dec 2022 13:45:36 +0000 (14:45 +0100)
commit876c4b703c7d00865f2ff0ae2b80c24de31b738c
tree9aa0d7ccb0885cfc9e02a175dc0b3af6efe5961b
parent44ccb4298f2fc180d41f98c3f6f55166214e25af
mtd: parsers: bcm47xxpart: print correct offset on read error

BugLink: https://bugs.launchpad.net/bugs/1998843
[ Upstream commit 4c38eded807043f40f4dc49da6df097f9dcac393 ]

mtd_read() gets called with offset + 0x8000 as argument so use the same
value in pr_err().

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220317114316.29827-1-zajec5@gmail.com
Stable-dep-of: 05e258c6ec66 ("mtd: parsers: bcm47xxpart: Fix halfblock reads")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/mtd/parsers/bcm47xxpart.c