mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
[PATCH] fuse: handle error INIT reply
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>
This commit is contained in:
parent
f43b155a5a
commit
b3bebd94bb
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue