OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 18... | Line 18... | |||
18 | drivers/mtd/mtdpart.c | 11 ++++++++++- |
18 | drivers/mtd/mtdpart.c | 11 ++++++++++- |
|
19 | 1 file changed, 10 insertions(+), 1 deletion(-) |
19 | 1 file changed, 10 insertions(+), 1 deletion(-) |
|
Line 20... | Line 20... | |||
20 | |
20 | |
|
21 | --- a/drivers/mtd/mtdpart.c |
21 | --- a/drivers/mtd/mtdpart.c |
|
22 | +++ b/drivers/mtd/mtdpart.c |
22 | +++ b/drivers/mtd/mtdpart.c |
|
23 | @@ -348,7 +348,16 @@ static int part_lock(struct mtd_info *mt |
23 | @@ -344,7 +344,16 @@ static int part_lock(struct mtd_info *mt |
|
24 | static int part_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) |
24 | static int part_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len) |
|
25 | { |
25 | { |
|
26 | struct mtd_part *part = mtd_to_part(mtd); |
26 | struct mtd_part *part = mtd_to_part(mtd); |
|
27 | - return part->parent->_unlock(part->parent, ofs + part->offset, len); |
27 | - return part->parent->_unlock(part->parent, ofs + part->offset, len); |