]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Fix the mapping of the UAEOVERFLOW abort code
authorDavid Howells <dhowells@redhat.com>
Sun, 14 Jun 2020 21:12:05 +0000 (22:12 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 15 Jun 2020 14:41:03 +0000 (15:41 +0100)
commit06855da86cbc4b2cb4d8f345eb925fdb257d96fe
treeba486cb6ead64f2ec3fddc4a66935b3f18d2e377
parent0b09cd992eef8d83b19e2dd65092dd33f65f1517
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: 8a0d723fbfc9 ("afs: Add support for the UAE error table")
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/misc.c