msm: vidc: define max profile level count
Existing code allocates single element array for the
supported profile level. When the supported profile and
level count increases, video drives writes on a memory
which was not allocated for this purpose. In the process,
memory corruption is observed leading to kernel panic.
Define a macro for max profile level count and avoid
updating the local stack object when venus FW sends
profile level count greater than max profile level
count
Change-Id: I2f554cdcf5f5dc505c088a006adcce1db9c98b54
CRs-Fixed: 652233
Signed-off-by:
Vikash Garodia <vgarodia@codeaurora.org>
Loading
Please register or sign in to comment