mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
Merge "msm: vidc: add check to ensure buffer size is 4K aligned"
This commit is contained in:
commit
d10a4f3a23
1 changed files with 6 additions and 0 deletions
|
|
@ -340,6 +340,12 @@ int msm_vidc_qbuf(void *instance, struct v4l2_buffer *b)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (!IS_ALIGNED(b->m.planes[0].length, SZ_4K)) {
|
||||
dprintk(VIDC_ERR, "qbuf: %x: buffer size not 4K aligned - %u\n",
|
||||
hash32_ptr(inst->session), b->m.planes[0].length);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (inst->in_flush && is_decode_session(inst) &&
|
||||
b->type == OUTPUT_MPLANE) {
|
||||
dprintk(VIDC_ERR, "%s: in flush, discarding qbuf\n", __func__);
|
||||
|
|
|
|||
Loading…
Reference in a new issue