Commit abcce7a3 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Lipeng Sang
Browse files

mtd: parsers: bcm47xxpart: print correct offset on read error

stable inclusion
from stable-v5.10.154
commit 85e458369c0f48d3b27592c0804dedbeb466c4db
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I64YCB

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=85e458369c0f48d3b27592c0804dedbeb466c4db



--------------------------------

[ Upstream commit 4c38eded ]

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

Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220317114316.29827-1-zajec5@gmail.com


Stable-dep-of: 05e258c6 ("mtd: parsers: bcm47xxpart: Fix halfblock reads")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarLipeng Sang <sanglipeng1@jd.com>
parent 45e3e0d6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment