projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
712917d
)
[PATCH] NFSv4: fix mount segfault on errors returned that are < -1000
author
Trond Myklebust
<
[email protected]
>
Tue, 14 Mar 2006 05:20:47 +0000
(21:20 -0800)
committer
Linus Torvalds
<
[email protected]
>
Tue, 14 Mar 2006 15:57:18 +0000
(07:57 -0800)
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
<
[email protected]
>
Signed-off-by: Trond Myklebust <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/nfs/nfs4proc.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs4proc.c
b/fs/nfs/nfs4proc.c
index 984ca3454d0441de4008948fc0c91f60b42ccbeb..f8c0066e02e1456a696f51e7f6b8eb0b77742c35 100644
(file)
--- a/
fs/nfs/nfs4proc.c
+++ b/
fs/nfs/nfs4proc.c
@@
-1430,7
+1430,7
@@
static int nfs4_proc_get_root(struct nfs_server *server, struct nfs_fh *fhandle,
if (status == 0)
status = nfs4_do_fsinfo(server, fhandle, info);
out:
- return
status
;
+ return
nfs4_map_errors(status)
;
}
static int _nfs4_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fattr *fattr)