projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e08ba89
)
9p/net: fix memory leak in p9_client_create
author
zhengbin
<zhengbin13@huawei.com>
Wed, 13 Mar 2019 08:01:37 +0000
(16:01 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 19:09:38 +0000
(20:09 +0100)
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>
net/9p/client.c
patch
|
blob
|
history
diff --git
a/net/9p/client.c
b/net/9p/client.c
index
75b7bf7
..
23ec618
100644
(file)
--- a/
net/9p/client.c
+++ b/
net/9p/client.c
@@
-1073,7
+1073,7
@@
struct p9_client *p9_client_create(const char *dev_name, char *options)
p9_debug(P9_DEBUG_ERROR,
"Please specify a msize of at least 4k\n");
err = -EINVAL;
- goto
free_client
;
+ goto
close_trans
;
}
err = p9_client_version(clnt);