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 08:46:26 +0000 (10:46 +0200)
commit824a4ed2767d4568a0eece73fafe0141128b4d18
treec64168b0b52c695586eebebc6084a5db861d7aad
parent60a585d4bc5d55bf866fa2d0cf6f17250ab6f49b
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