firestream: Fix memleak in fs_open
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Sun, 23 Aug 2020 11:29:35 +0000 (19:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Sep 2020 06:46:09 +0000 (08:46 +0200)
commit5e3b1827189fb31b46ccf130efbfdb2992b7a825
tree7a0464f881615d876832f6ec951dd865c03e9dd6
parent8d35eff779ccdd8ebb604478fa9041706f012655
firestream: Fix memleak in fs_open

[ Upstream commit 15ac5cdafb9202424206dc5bd376437a358963f9 ]

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>
drivers/atm/firestream.c