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:
c506694
)
NFS: return -ENOKEY when the upcall fails to map the name
author
Bryan Schumaker
<
[email protected]
>
Thu, 9 Aug 2012 18:05:50 +0000
(14:05 -0400)
committer
Trond Myklebust
<
[email protected]
>
Thu, 16 Aug 2012 21:20:06 +0000
(17:20 -0400)
This allows the normal error-paths to handle the error, rather than
making a special call to complete_request_key() just for this instance.
Signed-off-by: Bryan Schumaker <
[email protected]
>
Tested-by: William Dauchy <
[email protected]
>
Cc:
[email protected]
[>= 3.4]
Signed-off-by: Trond Myklebust <
[email protected]
>
fs/nfs/idmap.c
patch
|
blob
|
history
diff --git
a/fs/nfs/idmap.c
b/fs/nfs/idmap.c
index 6703c73307a5b28cfc17fc20234e853599d2c835..a850079467d85f149d997b9c96176c9a0829be0d 100644
(file)
--- a/
fs/nfs/idmap.c
+++ b/
fs/nfs/idmap.c
@@
-760,9
+760,8
@@
idmap_pipe_downcall(struct file *filp, const char __user *src, size_t mlen)
}
if (!(im.im_status & IDMAP_STATUS_SUCCESS)) {
- ret = mlen;
- complete_request_key(cons, -ENOKEY);
- goto out_incomplete;
+ ret = -ENOKEY;
+ goto out;
}
namelen_in = strnlen(im.im_name, IDMAP_NAMESZ);
@@
-779,7
+778,6
@@
idmap_pipe_downcall(struct file *filp, const char __user *src, size_t mlen)
out:
complete_request_key(cons, ret);
-out_incomplete:
return ret;
}