projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2d79cd
)
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
David S. Miller
<davem@davemloft.net>
Tue, 25 Aug 2020 01:02:43 +0000
(18:02 -0700)
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>
drivers/atm/firestream.c
patch
|
blob
|
history
diff --git
a/drivers/atm/firestream.c
b/drivers/atm/firestream.c
index 2ca9ec8027342996ded892562f737b3a1864e21f..510250cf5c876650b49ba6996d50db35b19abd69 100644
(file)
--- a/
drivers/atm/firestream.c
+++ b/
drivers/atm/firestream.c
@@
-998,6
+998,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;
}
}