summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-02-11 10:42:28 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-02-11 11:47:08 +0100
commit07b87a09088eeca12e237057b719371e879d5540 (patch)
treebfc0dee9ffb7c235834f1aa583b04adf81725dbe /Documentation
parent9ef38876713229f7d0e267866c667d0b65c406da (diff)
downloadbarebox-07b87a09088eeca12e237057b719371e879d5540.tar.gz
barebox-07b87a09088eeca12e237057b719371e879d5540.tar.xz
scripts/common: Do not mmap in read_file_2()
Using mmap() in read_file_2() leads to problems because there are cases where the buffer returned from read_file_2() is modified and then written back to the same file. This doesn't work when the original file has been mmapped instead of being read into an allocated buffer. Using mmap() was introduced for a usecase where the system is very tight in memory and bareboximd ran out of memory. Support for this usecase is removed here, we'll bring it back in the next patch. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Link: https://lore.barebox.org/20220211094230.1807262-1-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions