From: David Howells Date: Sun, 14 Jun 2020 21:12:05 +0000 (+0100) Subject: afs: Fix the mapping of the UAEOVERFLOW abort code X-Git-Tag: v5.8-rc2~27^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4ec89596d06bd481ba827f3b409b938d63914157;p=thirdparty%2Fkernel%2Flinux.git afs: Fix the mapping of the UAEOVERFLOW abort code Abort code UAEOVERFLOW is returned when we try and set a time that's out of range, but it's currently mapped to EREMOTEIO by the default case. Fix UAEOVERFLOW to map instead to EOVERFLOW. Found with the generic/258 xfstest. Note that the test is wrong as it assumes that the filesystem will support a pre-UNIX-epoch date. Fixes: 1eda8bab70ca ("afs: Add support for the UAE error table") Signed-off-by: David Howells --- diff --git a/fs/afs/misc.c b/fs/afs/misc.c index 52b19e9c15351..5334f1bd2bca7 100644 --- a/fs/afs/misc.c +++ b/fs/afs/misc.c @@ -83,6 +83,7 @@ int afs_abort_to_error(u32 abort_code) case UAENOLCK: return -ENOLCK; case UAENOTEMPTY: return -ENOTEMPTY; case UAELOOP: return -ELOOP; + case UAEOVERFLOW: return -EOVERFLOW; case UAENOMEDIUM: return -ENOMEDIUM; case UAEDQUOT: return -EDQUOT;