android_kernel_oneplus_msm8998/net/9p
zhengbin d96e50a53b 9p/net: fix memory leak in p9_client_create
commit bb06c388fa20ae24cfe80c52488de718a7e3a53f upstream.

If msize is less than 4096, we should close and put trans, destroy
tagpool, not just free client. This patch fixes that.

Link: http://lkml.kernel.org/m/1552464097-142659-1-git-send-email-zhengbin13@huawei.com
Cc: stable@vger.kernel.org
Fixes: 574d356b7a02 ("9p/net: put a lower bound on msize")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-23 08:44:32 +01:00
..
client.c 9p/net: fix memory leak in p9_client_create 2019-03-23 08:44:32 +01:00
error.c
Kconfig
Makefile
mod.c
protocol.c 9p: clear dangling pointers in p9stat_free 2018-11-21 09:27:39 +01:00
protocol.h
trans_common.c
trans_common.h
trans_fd.c 9p: fix multiple NULL-pointer-dereferences 2018-09-09 20:04:34 +02:00
trans_rdma.c 9p: fix multiple NULL-pointer-dereferences 2018-09-09 20:04:34 +02:00
trans_virtio.c net/9p: fix error path of p9_virtio_probe 2018-09-15 09:40:39 +02:00
util.c