Files
linux/fs/fuse
zhengbin 80a84d6c82 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-17 13:42:12 -07:00
..
2016-10-01 07:32:32 +02:00
2019-10-17 13:42:12 -07:00
2018-09-05 09:20:08 +02:00
2018-09-05 09:20:08 +02:00
2016-10-01 07:32:32 +02:00
2016-10-01 07:32:32 +02:00
2016-10-03 11:06:05 +02:00