diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-02-28 11:07:16 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-02-28 12:52:37 +0100 |
commit | 8ab6dbdaa72f1533e3f80608932bc0b52f83a451 (patch) | |
tree | 96b82402632f717530be9ec5a8997a79e9752f43 /drivers/regulator/core.c | |
parent | 729ad0c2e8c0b1c4af34174338bbd593bd70050d (diff) | |
download | barebox-8ab6dbdaa72f1533e3f80608932bc0b52f83a451.tar.gz barebox-8ab6dbdaa72f1533e3f80608932bc0b52f83a451.tar.xz |
scripts: bareboximd: Fix -c option
Using mmap in read_file doesn't work when the same file is written
afterwards with write_file. This problem was fixed in 738601e125
("scripts/common: fix write_file when opened with mmap"). Using mmap in
read_file was removed in 07b87a0908 ("scripts/common: Do not mmap in
read_file_2()") but then re-introduced for bareboximd in 013e8ea757
("scripts: bareboximd: Use mmap when possible"). I'll put my brown paper
bag on for this :(
This patch fixes the issue by explicitly avoiding mmap when the file
is written later as done with the -c option to bareboximd
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reported-by: Andrej Picej <andrej.picej@norik.com>
Tested-by: Andrej Picej <andrej.picej@norik.com>
Diffstat (limited to 'drivers/regulator/core.c')
0 files changed, 0 insertions, 0 deletions