PD#SWPL-25177
Problem:
VMX encrypted stream switch to "BBC MUX uh-ts"
and crash in dvb
Solution:
Non-null judgment on null pointer
Verify:
U215
Change-Id: I638acd8e94fad5ff1f51263c856115af03e4938c
Signed-off-by: miaohong chen <miaohong.chen@amlogic.com>
psrc_data = (u8 *)hw->ccbuf_phyAddress_virt + hw->ucode_cc_last_wp;
pdata = hw->userdata_info.data_buf + hw->userdata_info.last_wp;
- for (i = 0; i < data_length && psrc_data; i++) {
+ for (i = 0; i < data_length && hw->ccbuf_phyAddress_virt != NULL && psrc_data; i++) {
*pdata++ = *psrc_data++;
if (pdata >= hw->userdata_info.data_buf_end)
pdata = hw->userdata_info.data_buf;