mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 05:27:07 +02:00
mtd: parsers: bcm47xxpart: print correct offset on read error
[ Upstream commit4c38eded80] 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:05e258c6ec("mtd: parsers: bcm47xxpart: Fix halfblock reads") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
ec54104feb
commit
85e458369c
|
|
@ -237,7 +237,7 @@ static int bcm47xxpart_parse(struct mtd_info *master,
|
||||||
(uint8_t *)buf);
|
(uint8_t *)buf);
|
||||||
if (err && !mtd_is_bitflip(err)) {
|
if (err && !mtd_is_bitflip(err)) {
|
||||||
pr_err("mtd_read error while parsing (offset: 0x%X): %d\n",
|
pr_err("mtd_read error while parsing (offset: 0x%X): %d\n",
|
||||||
offset, err);
|
offset + 0x8000, err);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user