Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ext4: set error return correctly when ext4_htree_store_dirent fails
task #28557685 [ Upstream commit 7a14826 ] Currently when the call to ext4_htree_store_dirent fails the error return variable 'ret' is is not being set to the error code and variable count is instead, hence the error code is not being returned. Fix this by assigning ret to the error return code. Addresses-Coverity: ("Unused value") Fixes: 8af0f08 ("ext4: fix readdir error in the case of inline_data+dir_index") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Theodore Ts'o <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Jeffle Xu <[email protected]> Acked-by: Joseph Qi <[email protected]>
- Loading branch information