[media] bt8xx: fix memory leak
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Fri, 16 Dec 2016 21:31:49 +0000 (19:31 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Jan 2017 09:42:20 +0000 (07:42 -0200)
commit6792eb0cf9310ec240b7e7c9bfa86dff4c758c68
treea77fce09c6a410aacf922477d113334e57ca9ad2
parent7cebf2ee8b7e39c06c93b593b0848a7baf9e73a8
[media] bt8xx: fix memory leak

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>
drivers/media/pci/bt8xx/dvb-bt8xx.c