linux/fs/fuse
zhengbin 1c8c25209d fuse: fix memleak in cuse_channel_open
[ Upstream commit 9ad09b1976 ]

If cuse_send_init fails, need to fuse_conn_put cc->fc.

cuse_channel_open->fuse_conn_init->refcount_set(&fc->count, 1)
                 ->fuse_dev_alloc->fuse_conn_get
                 ->fuse_dev_free->fuse_conn_put

Fixes: cc080e9e9b ("fuse: introduce per-instance fuse_dev structure")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-10-11 18:18:41 +02:00
..
acl.c fuse: Add posix ACL support 2016-10-01 07:32:32 +02:00
control.c fuse: fix control dir setup and teardown 2018-07-03 11:24:49 +02:00
cuse.c fuse: fix memleak in cuse_channel_open 2019-10-11 18:18:41 +02:00
dev.c fuse: retrieve: cap requested size to negotiated max_write 2019-06-15 11:54:54 +02:00
dir.c fuse: continue to send FUSE_RELEASEDIR when FUSE_OPEN returns ENOSYS 2018-12-21 14:13:05 +01:00
file.c fuse: fix missing unlock_page in fuse_writepage() 2019-10-05 12:48:05 +02:00
fuse_i.h fuse: continue to send FUSE_RELEASEDIR when FUSE_OPEN returns ENOSYS 2018-12-21 14:13:05 +01:00
inode.c fuse: Fix oops at process_init_reply() 2018-09-05 09:26:38 +02:00
Kconfig fuse: Add posix ACL support 2016-10-01 07:32:32 +02:00
Makefile fuse: Use generic xattr ops 2016-10-01 07:32:32 +02:00
xattr.c fuse: limit xattr returned size 2016-10-03 11:06:05 +02:00