demux: fix switch timeshift program crash [1/1]
authorChuangcheng Peng <chuangcheng.peng@amlogic.com>
Mon, 11 Jan 2021 02:02:03 +0000 (10:02 +0800)
committerHui Zhang <hui.zhang@amlogic.com>
Wed, 13 Jan 2021 05:52:31 +0000 (21:52 -0800)
PD#SWPL-32565

Problem:
 switch timeshift program crash.

Solution:
 dvr feed should be clear when free channel.

Verify:
 verified at AC215

Signed-off-by: Chuangcheng Peng <chuangcheng.peng@amlogic.com>
Change-Id: Ic29e806a6d90ad3fd1784b9ad59ea97fa4cb8f20

drivers/stream_input/parser/hw_demux/aml_dmx.c

index 76d21c534a5c053aa8ae05942e9a597d01bc4ebe..e3e9c19409d639e4f708f3494a11ecae947ade04 100644 (file)
@@ -4804,6 +4804,7 @@ void dmx_free_chan(struct aml_dmx *dmx, int cid)
                pr_dbg("raw ch fix: dmx:%d: ch[%d] -> ch[(dvr)]\n",
                        dmx->id, cid);
                dmx_add_feed(dmx, dmx->channel[cid].dvr_feed);
+               dmx->channel[cid].dvr_feed = NULL;
        }
 }