]> asedeno.scripts.mit.edu Git - linux.git/commit
ext4: set error return correctly when ext4_htree_store_dirent fails
authorColin Ian King <colin.king@canonical.com>
Mon, 12 Aug 2019 18:29:38 +0000 (14:29 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 12 Aug 2019 18:29:38 +0000 (14:29 -0400)
commit7a14826ede1d714f0bb56de8167c0e519041eeda
treee7c34a9f0263a46859b7e8f2365fa093e017e094
parentcd2d99229dc96219547e6349841e1aad851c6acc
ext4: set error return correctly when ext4_htree_store_dirent fails

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: 8af0f0822797 ("ext4: fix readdir error in the case of inline_data+dir_index")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inline.c