OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f43b155
)
[PATCH] fuse: handle error INIT reply
author
Miklos Szeredi
<miklos@szeredi.hu>
Tue, 17 Jan 2006 06:14:27 +0000
(22:14 -0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Tue, 17 Jan 2006 07:15:29 +0000
(23:15 -0800)
Handle the case when the INIT request is answered with an error.
Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/fuse/dev.c
patch
|
blob
|
history
diff --git
a/fs/fuse/dev.c
b/fs/fuse/dev.c
index
de402e4
..
8244e89
100644
(file)
--- a/
fs/fuse/dev.c
+++ b/
fs/fuse/dev.c
@@
-153,7
+153,7
@@
static void process_init_reply(struct fuse_conn *fc, struct fuse_req *req)
int i;
struct fuse_init_out *arg = &req->misc.init_out;
- if (arg->major != FUSE_KERNEL_VERSION)
+ if (
req->out.h.error ||
arg->major != FUSE_KERNEL_VERSION)
fc->conn_error = 1;
else {
fc->minor = arg->minor;