vh265: fix crash issue in multi-h265 stop

PD#164394: h265_uninit_done_sema should be inited for multi-h265

Change-Id: I8e5fd16070cf859e83a0a81a0a3e503533efc048
Signed-off-by: Hui Zhang <hui.zhang@amlogic.com>
This commit is contained in:
Hui Zhang
2018-04-21 17:57:09 +08:00
committed by Dongjin Kim
parent f8e7781104
commit 013d751cc9

View File

@@ -8828,6 +8828,10 @@ static s32 vh265_init(struct hevc_state_s *hevc)
hevc->timer.function = vh265_check_timer_func;
hevc->timer.expires = jiffies + PUT_INTERVAL;
#ifdef USE_UNINIT_SEMA
sema_init(&hevc->h265_uninit_done_sema, 0);
#endif
/*add_timer(&hevc->timer);
*hevc->stat |= STAT_TIMER_ARM;
*/