linux/fs/ext4
Colin Ian King 1aa2fb7a04 ext4: set error return correctly when ext4_htree_store_dirent fails
[ Upstream commit 7a14826ede ]

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: 8af0f08227 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:51:03 +01:00
..
acl.c
acl.h
balloc.c
bitmap.c
block_validity.c ext4: fix potential use after free after remounting with noblock_validity 2019-10-07 18:57:05 +02:00
dir.c ext4: check for directory entries too close to block end 2019-12-31 16:36:27 +01:00
ext4_extents.h
ext4_jbd2.c
ext4_jbd2.h ext4: use jbd2_inode dirty range scoping 2019-07-28 08:29:29 +02:00
ext4.h ext4: fix potential use after free after remounting with noblock_validity 2019-10-07 18:57:05 +02:00
extents_status.c
extents_status.h
extents.c ext4: fix warning inside ext4_convert_unwritten_extents_endio 2019-10-05 13:10:11 +02:00
file.c ext4: enforce the immutable flag on open files 2019-07-28 08:29:29 +02:00
fsmap.c
fsmap.h
fsync.c Revert "ext4: use ext4_write_inode() when fsyncing w/o a journal" 2019-02-15 08:10:13 +01:00
hash.c
ialloc.c ext4: avoid declaring fs inconsistent due to invalid file handles 2019-01-09 17:38:43 +01:00
indirect.c ext4: cleanup bh release code in ext4_ind_remove_space() 2019-04-05 22:32:55 +02:00
inline.c ext4: set error return correctly when ext4_htree_store_dirent fails 2020-01-27 14:51:03 +01:00
inode.c ext4: iomap that extends beyond EOF should be marked dirty 2020-01-04 19:12:47 +01:00
ioctl.c ext4: disallow files with EXT4_JOURNAL_DATA_FL from EXT4_IOC_SWAP_BOOT 2019-11-06 13:05:37 +01:00
Kconfig
Makefile
mballoc.c ext4: make sanity check in mballoc more strict 2019-05-22 07:37:42 +02:00
mballoc.h
migrate.c ext4: add ext4_sb_bread() to disambiguate ENOMEM cases 2019-01-09 17:38:43 +01:00
mmp.c
move_extent.c ext4: use jbd2_inode dirty range scoping 2019-07-28 08:29:29 +02:00
namei.c ext4: fix ext4_empty_dir() for directories with holes 2019-12-31 16:36:26 +01:00
page-io.c
readpage.c
resize.c ext4: avoid drop reference to iloc.bh twice 2019-05-22 07:37:42 +02:00
super.c ext4: add more paranoia checking in ext4_expand_extra_isize handling 2019-12-05 09:21:32 +01:00
symlink.c
sysfs.c
truncate.h
xattr_security.c
xattr_trusted.c
xattr_user.c
xattr.c ext4: ignore e_value_offs for xattrs with value-in-ea-inode 2019-05-22 07:37:42 +02:00
xattr.h