OSDN Git Service

media: c8sectpfe: fix double free in configure_channels()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 8 Dec 2021 07:35:44 +0000 (08:35 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 14 Dec 2021 15:19:04 +0000 (16:19 +0100)
commit232c297a4e86fba1e2497012b1fcde6018d46f50
tree9dc0878b1a88c68caa6cdf59b7082dca4e359762
parent43f0633f89947df57fe0b5025bdd741768007708
media: c8sectpfe: fix double free in configure_channels()

The configure_channels() function has a double free because
configure_memdma_and_inputblock() calls free_input_block() and then
it's called again in the error handling code.

Link: https://lore.kernel.org/linux-media/20211208073544.GA22020@kili
Fixes: c5f5d0f99794 ("[media] c8sectpfe: STiH407/10 Linux DVB demux support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/sti/c8sectpfe/c8sectpfe-core.c