Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3bebd94 authored by Miklos Szeredi's avatar Miklos Szeredi Committed by Linus Torvalds
Browse files

[PATCH] fuse: handle error INIT reply



Handle the case when the INIT request is answered with an error.

Signed-off-by: default avatarMiklos Szeredi <miklos@szeredi.hu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f43b155a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;