diff options
author | 2022-11-09 18:14:45 +0000 | |
---|---|---|
committer | 2022-12-08 21:49:24 -0500 | |
commit | 26d75a16af285a70863ba6a81f85d81e7e65da50 (patch) | |
tree | e2ee45c22e39cdae37faa219ce90ccf11ede3e00 /lib/parser.c | |
parent | ext4: replace kmem_cache_create with KMEM_CACHE (diff) | |
download | linux-rng-26d75a16af285a70863ba6a81f85d81e7e65da50.tar.xz linux-rng-26d75a16af285a70863ba6a81f85d81e7e65da50.zip |
ext4: fix error code return to user-space in ext4_get_branch()
If a block is out of range in ext4_get_branch(), -ENOMEM will be returned
to user-space. Obviously, this error code isn't really useful. This
patch fixes it by making sure the right error code (-EFSCORRUPTED) is
propagated to user-space. EUCLEAN is more informative than ENOMEM.
Signed-off-by: Luís Henriques <lhenriques@suse.de>
Link: https://lore.kernel.org/r/20221109181445.17843-1-lhenriques@suse.de
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Diffstat (limited to 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions