ext4: return EIO on read error in ext4_find_entry
authorKhazhismel Kumykov <khazhy@google.com>
Fri, 23 Jun 2017 04:29:05 +0000 (00:29 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 23 Jun 2017 04:29:05 +0000 (00:29 -0400)
commit6febe6f253a5bb5c7ac2080d688bd4b75e019d4d
treef684f8158e8451b55c4007f30a6b4023d04281dd
parent9ce0151a47f6fa8e4b3b35785aac0d51adbb06ca
ext4: return EIO on read error in ext4_find_entry

Previously, a read error would be ignored and we would eventually return
NULL from ext4_find_entry, which signals "no such file or directory". We
should be returning EIO.

Signed-off-by: Khazhismel Kumykov <khazhy@google.com>
fs/ext4/namei.c