mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09: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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user