fuse: initialize fc->release before calling it
authorMiklos Szeredi <mszeredi@suse.cz>
Wed, 1 Jul 2015 14:25:55 +0000 (16:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 Sep 2015 11:52:15 +0000 (13:52 +0200)
commit9e5594d2355aa943785206cb7634826f77547253
tree67f27c9858b34f361c6f1b692d721a97a0604454
parent0c301ef6ace4b60c4d4016492a192e72496fefb1
fuse: initialize fc->release before calling it

commit 0ad0b3255a08020eaf50e34ef0d6df5bdf5e09ed upstream.

fc->release is called from fuse_conn_put() which was used in the error
cleanup before fc->release was initialized.

[Jeremiah Mahler <jmmahler@gmail.com>: assign fc->release after calling
fuse_conn_init(fc) instead of before.]

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Fixes: a325f9b92273 ("fuse: update fuse_conn_init() and separate out fuse_conn_kill()")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
(cherry picked from commit 1a713f9828a6abd288ecc9eef0bbe5c56d0ffc0b)

Signed-off-by: Willy Tarreau <w@1wt.eu>
fs/fuse/inode.c