Commit 5e3b1827 authored by Dinghao Liu's avatar Dinghao Liu Committed by Greg Kroah-Hartman

firestream: Fix memleak in fs_open

[ Upstream commit 15ac5cda ]

When make_rate() fails, vcc should be freed just
like other error paths in fs_open().
Signed-off-by: default avatarDinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8d35eff7
......@@ -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;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment