aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/pending-4.14
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2020-03-09 11:46:20 +0100
committerRafał Miłecki <rafal@milecki.pl>2020-03-09 11:49:42 +0100
commit5cc0493c2bac3089de3bfb52256748c6a9249254 (patch)
tree4088a33e3bffed9e7a61dabde30e5a21ae7ccbfb /target/linux/generic/pending-4.14
parentbcb4ac25396b491a5ffab068f488ad4758ce85ae (diff)
downloadupstream-5cc0493c2bac3089de3bfb52256748c6a9249254.tar.gz
upstream-5cc0493c2bac3089de3bfb52256748c6a9249254.tar.bz2
upstream-5cc0493c2bac3089de3bfb52256748c6a9249254.zip
kernel: backport mtd partition address fix sent upstream
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux/generic/pending-4.14')
-rw-r--r--target/linux/generic/pending-4.14/411-mtd-partial_eraseblock_write.patch3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/linux/generic/pending-4.14/411-mtd-partial_eraseblock_write.patch b/target/linux/generic/pending-4.14/411-mtd-partial_eraseblock_write.patch
index 3b862dae61..52f1cb5abf 100644
--- a/target/linux/generic/pending-4.14/411-mtd-partial_eraseblock_write.patch
+++ b/target/linux/generic/pending-4.14/411-mtd-partial_eraseblock_write.patch
@@ -123,8 +123,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
+ slave->mtd.erasesize = slave->mtd.size;
}
-- tmp = part_absolute_offset(parent) + slave->mtd.size;
-+ tmp = part_absolute_offset(parent) + slave->offset + slave->mtd.size;
+ tmp = part_absolute_offset(parent) + slave->offset + slave->mtd.size;
remainder = do_div(tmp, wr_alignment);
if ((slave->mtd.flags & MTD_WRITEABLE) && remainder) {
- slave->mtd.flags &= ~MTD_WRITEABLE;