kernel-fxtec-pro1x/net/9p
zhengbin 85bdc9daff 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 20:09:38 +01:00
..
client.c 9p/net: fix memory leak in p9_client_create 2019-03-23 20:09:38 +01:00
error.c
Kconfig
Makefile
mod.c
protocol.c 9p: clear dangling pointers in p9stat_free 2018-11-21 09:19:12 +01:00
protocol.h
trans_common.c
trans_common.h
trans_fd.c 9p: fix multiple NULL-pointer-dereferences 2018-08-13 09:34:58 +09:00
trans_rdma.c Pull request for inclusion in 4.19, take two 2018-08-17 17:27:58 -07:00
trans_virtio.c 9p/virtio: fix off-by-one error in sg list bounds check 2018-08-13 09:35:28 +09:00
trans_xen.c 9p: fix multiple NULL-pointer-dereferences 2018-08-13 09:34:58 +09:00
util.c 9p: fix whitespace issues 2018-08-13 09:34:58 +09:00