diff options
author | Jan Kara <jack@suse.cz> | 2023-02-27 21:32:19 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2023-03-06 18:38:25 +0300 |
commit | 49854d3ccc55efd7e6873e0c39f360bdbe251c51 (patch) | |
tree | 48c088dd4f0c7661061d2cb745eb33d436dd6261 /fs/9p | |
parent | fe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff) | |
download | linux-49854d3ccc55efd7e6873e0c39f360bdbe251c51.tar.xz |
udf: Fix lost writes in udf_adinicb_writepage()
The patch converting udf_adinicb_writepage() to avoid manually kmapping
the page used memcpy_to_page() however that copies in the wrong
direction (effectively overwriting file data with the old contents).
What we should be using is memcpy_from_page() to copy data from the page
into the inode and then mark inode dirty to store the data.
Fixes: 5cfc45321a6d ("udf: Convert udf_adinicb_writepage() to memcpy_to_page()")
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/9p')
0 files changed, 0 insertions, 0 deletions