Commit c12e87f4652b1ba3be168b4f63a440399b941928
Committed by
Linus Torvalds
1 parent
712917d1c0
Exists in
master
and in
4 other branches
[PATCH] NFSv4: fix mount segfault on errors returned that are < -1000
It turns out that nfs4_proc_get_root() may return raw NFSv4 errors instead of mapping them to kernel errors. Problem spotted by Neil Horman <nhorman@tuxdriver.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
fs/nfs/nfs4proc.c
| ... | ... | @@ -1430,7 +1430,7 @@ |
| 1430 | 1430 | if (status == 0) |
| 1431 | 1431 | status = nfs4_do_fsinfo(server, fhandle, info); |
| 1432 | 1432 | out: |
| 1433 | - return status; | |
| 1433 | + return nfs4_map_errors(status); | |
| 1434 | 1434 | } |
| 1435 | 1435 | |
| 1436 | 1436 | static int _nfs4_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fattr *fattr) |