]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commite1a14b6816de643caefdb3a1dbc6b4ad43ba3a40
treea77fce09c6a410aacf922477d113334e57ca9ad2
parentef4288928b321d536da22962fd6a24845eed3e59
[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