mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
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:
@@ -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;
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user