]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
9p/net: fix memory leak in p9_client_create
authorzhengbin <zhengbin13@huawei.com>
Wed, 13 Mar 2019 08:01:37 +0000 (16:01 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 25 Mar 2019 15:44:38 +0000 (10:44 -0500)
commit405797c71f3919541c4082d482dd1dcaa4b7cd2c
treee3d78a0389daf54659fd1be85f9d3062e6042fdc
parentb60ba91f902ec08bb124b715653d84df906a1215
9p/net: fix memory leak in p9_client_create

BugLink: https://bugs.launchpad.net/bugs/1821607
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>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
net/9p/client.c