]> git.baikalelectronics.ru Git - kernel.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)
commit86be37c68a7dfe6efc37d0b063a23d5b04e2a709
treee7c34a9f0263a46859b7e8f2365fa093e017e094
parent73600ceeb320cc5196dda4ee9bdfab26aa3cf2d7
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: 95b7e8462568 ("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