]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/nfsd/vfs.c
NFSD: restore EINVAL error translation in nfsd_commit()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 25 Jun 2022 20:52:43 +0000 (23:52 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 26 Aug 2022 08:54:15 +0000 (10:54 +0200)
commit98976e52296f062cabc4565df6a90600a2893c2d
treebc6c7626bde95f249d665b91274f2a2d6c4ba5ae
parent92e0fc60e054cdd395f0e337ac4bcc8c3d4ae310
NFSD: restore EINVAL error translation in nfsd_commit()

BugLink: https://bugs.launchpad.net/bugs/1986728
commit 8a9ffb8c857c2c99403bd6483a5a005fed5c0773 upstream.

commit 555dbf1a9aac ("nfsd: Replace use of rwsem with errseq_t")
incidentally broke translation of -EINVAL to nfserr_notsupp.
The patch restores that.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Fixes: 555dbf1a9aac ("nfsd: Replace use of rwsem with errseq_t")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/nfsd/vfs.c