diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2020-03-09 11:46:20 +0100 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2020-03-09 11:49:42 +0100 |
commit | 5cc0493c2bac3089de3bfb52256748c6a9249254 (patch) | |
tree | 4088a33e3bffed9e7a61dabde30e5a21ae7ccbfb /target/linux/generic/pending-5.4 | |
parent | bcb4ac25396b491a5ffab068f488ad4758ce85ae (diff) | |
download | upstream-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-5.4')
-rw-r--r-- | target/linux/generic/pending-5.4/411-mtd-partial_eraseblock_write.patch | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target/linux/generic/pending-5.4/411-mtd-partial_eraseblock_write.patch b/target/linux/generic/pending-5.4/411-mtd-partial_eraseblock_write.patch index f2a187df30..b46c3f5ed4 100644 --- a/target/linux/generic/pending-5.4/411-mtd-partial_eraseblock_write.patch +++ b/target/linux/generic/pending-5.4/411-mtd-partial_eraseblock_write.patch @@ -114,8 +114,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; |