Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 19008f6d authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

ext4: fix ext4_swap_extents() error handling



If ext4_ext_find_extent() returns an error, we have to clear path1 or
path2 or else we would end up trying to free an ERR_PTR, which would
be bad.

Also eliminate some redundant code and mark the error paths as unlikely()

Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent fcf6b1b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment