diff options
| author | Jan Kara <jack@suse.cz> | 2023-01-23 14:29:15 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-17 08:50:19 +0100 |
| commit | 9ee18ff099b0d507a1aaebe8b068d891b4f3990e (patch) | |
| tree | f6bfdc6cf5b312a0ea34f2826cea7ee53961ff6b /drivers/bus | |
| parent | a926daa8b13c17603102054b46632298a3f19d9c (diff) | |
| download | linux-9ee18ff099b0d507a1aaebe8b068d891b4f3990e.tar.gz linux-9ee18ff099b0d507a1aaebe8b068d891b4f3990e.tar.bz2 linux-9ee18ff099b0d507a1aaebe8b068d891b4f3990e.zip | |
udf: Fix off-by-one error when discarding preallocation
[ Upstream commit f54aa97fb7e5329a373f9df4e5e213ced4fc8759 ]
The condition determining whether the preallocation can be used had
an off-by-one error so we didn't discard preallocation when new
allocation was just following it. This can then confuse code in
inode_getblk().
CC: stable@vger.kernel.org
Fixes: 16d055656814 ("udf: Discard preallocation before extending file with a hole")
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/bus')
0 files changed, 0 insertions, 0 deletions
