video: driver: reject zero filledlen INPUT buffers
Reject zero filledlen INPUT qbuf ioctls. Expecting non-zero filledlen. Change-Id: I662acc72430acf8e2474b6ea26a1f2d0cb1fb6ae Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
This commit is contained in:
@@ -441,6 +441,13 @@ int msm_vidc_qbuf(void *instance, struct media_device *mdev,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* Expecting non-zero filledlen on INPUT port */
|
||||
if (b->type == INPUT_MPLANE && !b->m.planes[0].bytesused) {
|
||||
i_vpr_e(inst,
|
||||
"%s: zero bytesused input buffer not supported\n", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
q = msm_vidc_get_vb2q(inst, b->type, __func__);
|
||||
if (!q) {
|
||||
rc = -EINVAL;
|
||||
|
Reference in New Issue
Block a user