PD#SWPL-26415
Problem:
There is no lock in core_show function when access core->connected_vdec_list
Solution:
Add lock to the function.
Verify:
u212
Change-Id: I6cc9cf9126f9b3a52fbed492109e8c150702c1c9
Signed-off-by: apollo.ling <apollo.ling@amlogic.com>
{
struct vdec_core_s *core = vdec_core;
char *pbuf = buf;
+ unsigned long flags = vdec_core_lock(vdec_core);
if (list_empty(&core->connected_vdec_list))
pbuf += sprintf(pbuf, "connected vdec list empty\n");
}
}
+ vdec_core_unlock(vdec_core, flags);
return pbuf - buf;
}