projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3123109
)
mtd: parsers: bcm47xxpart: print correct offset on read error
author
Rafał Miłecki
<rafal@milecki.pl>
Thu, 17 Mar 2022 11:43:16 +0000
(12:43 +0100)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Mon, 4 Apr 2022 08:33:11 +0000
(10:33 +0200)
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
drivers/mtd/parsers/bcm47xxpart.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/parsers/bcm47xxpart.c
b/drivers/mtd/parsers/bcm47xxpart.c
index 6012a10f10c83aef7aa26a1542f83559ed0e3833..50fcf4c2174ba93aa7c804927576dac8e128985b 100644
(file)
--- a/
drivers/mtd/parsers/bcm47xxpart.c
+++ b/
drivers/mtd/parsers/bcm47xxpart.c
@@
-237,7
+237,7
@@
static int bcm47xxpart_parse(struct mtd_info *master,
(uint8_t *)buf);
if (err && !mtd_is_bitflip(err)) {
pr_err("mtd_read error while parsing (offset: 0x%X): %d\n",
- offset, err);
+ offset
+ 0x8000
, err);
continue;
}