projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d35eff
)
firestream: Fix memleak in fs_open
author
Dinghao Liu
<dinghao.liu@zju.edu.cn>
Sun, 23 Aug 2020 11:29:35 +0000
(19:29 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 23 Sep 2020 06:46:09 +0000
(08:46 +0200)
[ Upstream commit
15ac5cdafb9202424206dc5bd376437a358963f9
]
When make_rate() fails, vcc should be freed just
like other error paths in fs_open().
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/atm/firestream.c
patch
|
blob
|
history
diff --git
a/drivers/atm/firestream.c
b/drivers/atm/firestream.c
index
82296fe
..
7cb2b86
100644
(file)
--- a/
drivers/atm/firestream.c
+++ b/
drivers/atm/firestream.c
@@
-1013,6
+1013,7
@@
static int fs_open(struct atm_vcc *atm_vcc)
error = make_rate (pcr, r, &tmc0, NULL);
if (error) {
kfree(tc);
+ kfree(vcc);
return error;
}
}