mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
Merge "FROMGIT: media: venus: hfi_parser: add check to avoid out of bound access" into kernel.lnx.5.4.r1-rel
This commit is contained in:
commit
c6cb502b05
1 changed files with 2 additions and 0 deletions
|
|
@ -19,6 +19,8 @@ static void init_codecs(struct venus_core *core)
|
|||
struct venus_caps *caps = core->caps, *cap;
|
||||
unsigned long bit;
|
||||
|
||||
core->codecs_count = 0;
|
||||
|
||||
if (hweight_long(core->dec_codecs) + hweight_long(core->enc_codecs) > MAX_CODEC_NUM)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue