media: ddbridge: fix resources cleanup for CI hardware
authorDaniel Scheller <d.scheller@gmx.net>
Sun, 17 Dec 2017 15:40:43 +0000 (10:40 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 19 Dec 2017 12:16:23 +0000 (07:16 -0500)
commitfac37bb124c221bde55ae77fbf8c7eff84881bda
tree578f9146a2f7519a3a4541ca0b9bf45e542c137d
parenta1c484b3a09bda3d2a0c3c1f38691a625e4d016a
media: ddbridge: fix resources cleanup for CI hardware

Do kfree() on port->en->data instead of port->en. port->en only holds a
ptr to a struct dvb_ca_en50221, which is a member either of a memalloc'ed
struct ddb_ci (DuoFlex CI, Octopus CI Duo) or a struct cxd (CXD2099AR
based Single Flex, allocated by the cxd2099 driver). port->en.data
though holds the ptr to the allocated memory, which must rather be
kfree()'d. Change this accordingly.

Cc: Ralph Metzler <rjkm@metzlerbros.de>
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/ddbridge/ddbridge-core.c