bt8xx: fix memory leak
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Sat, 7 Oct 2017 22:36:57 +0000 (22:36 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2017 09:08:37 +0000 (10:08 +0100)
commit2a6576f56eabb84a1e0fe1a6d62a46c106688bae
tree517b837ad6b12d221717f63bdb40a7ca64f5c78a
parentc31f5651aed76791782e7a0c74fe301ed8f9391e
bt8xx: fix memory leak

[ Upstream commit 6792eb0cf9310ec240b7e7c9bfa86dff4c758c68 ]

If dvb_attach() fails then we were just printing an error message and
exiting but the memory allocated to state was not released.

Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/pci/bt8xx/dvb-bt8xx.c