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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2022 17:14:21 +0000 (18:14 +0100)
commit85e458369c0f48d3b27592c0804dedbeb466c4db
treeb8abbf332521e1501847d3de516c8fd5960739f3
parentec54104febdcf4342cac8d718f16202484c6bf2b
mtd: parsers: bcm47xxpart: print correct offset on read error

[ 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>
drivers/mtd/parsers/bcm47xxpart.c