mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
firestream: Fix memleak in fs_open
[ Upstream commit 15ac5cdafb
]
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>
This commit is contained in:
parent
818c725c12
commit
1518c24b32
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue