Commit 15ac5cda authored by Dinghao Liu's avatar Dinghao Liu Committed by David S. Miller

firestream: Fix memleak in fs_open

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>
parent e2d79cd8
......@@ -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;
}
}
......
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