提交 b3bebd94 编写于 作者: M Miklos Szeredi 提交者: Linus Torvalds

[PATCH] fuse: handle error INIT reply

Handle the case when the INIT request is answered with an error.
Signed-off-by: NMiklos Szeredi <miklos@szeredi.hu>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 f43b155a
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册