Loading drivers/media/platform/msm/vidc/msm_vidc.c +15 −6 Original line number Diff line number Diff line Loading @@ -733,6 +733,13 @@ int msm_vidc_prepare_buf(void *instance, struct v4l2_buffer *b) if (!inst || !b) return -EINVAL; if (!V4L2_TYPE_IS_MULTIPLANAR(b->type) || !b->length || (b->length > VIDEO_MAX_PLANES)) { dprintk(VIDC_ERR, "%s: wrong input params\n", __func__); return -EINVAL; } if (is_dynamic_output_buffer_mode(b, inst)) { dprintk(VIDC_ERR, "%s: not supported in dynamic buffer mode\n", __func__); Loading Loading @@ -885,9 +892,10 @@ int msm_vidc_qbuf(void *instance, struct v4l2_buffer *b) if (!inst || !b) return -EINVAL; if (b->length > VIDEO_MAX_PLANES) { dprintk(VIDC_ERR, "num planes exceeds max: %d\n", b->length); if (!V4L2_TYPE_IS_MULTIPLANAR(b->type) || !b->length || (b->length > VIDEO_MAX_PLANES)) { dprintk(VIDC_ERR, "%s: wrong input params\n", __func__); return -EINVAL; } Loading Loading @@ -968,9 +976,10 @@ int msm_vidc_dqbuf(void *instance, struct v4l2_buffer *b) if (!inst || !b) return -EINVAL; if (b->length > VIDEO_MAX_PLANES) { dprintk(VIDC_ERR, "num planes exceed maximum: %d\n", b->length); if (!V4L2_TYPE_IS_MULTIPLANAR(b->type) || !b->length || (b->length > VIDEO_MAX_PLANES)) { dprintk(VIDC_ERR, "%s: wrong input params\n", __func__); return -EINVAL; } Loading Loading
drivers/media/platform/msm/vidc/msm_vidc.c +15 −6 Original line number Diff line number Diff line Loading @@ -733,6 +733,13 @@ int msm_vidc_prepare_buf(void *instance, struct v4l2_buffer *b) if (!inst || !b) return -EINVAL; if (!V4L2_TYPE_IS_MULTIPLANAR(b->type) || !b->length || (b->length > VIDEO_MAX_PLANES)) { dprintk(VIDC_ERR, "%s: wrong input params\n", __func__); return -EINVAL; } if (is_dynamic_output_buffer_mode(b, inst)) { dprintk(VIDC_ERR, "%s: not supported in dynamic buffer mode\n", __func__); Loading Loading @@ -885,9 +892,10 @@ int msm_vidc_qbuf(void *instance, struct v4l2_buffer *b) if (!inst || !b) return -EINVAL; if (b->length > VIDEO_MAX_PLANES) { dprintk(VIDC_ERR, "num planes exceeds max: %d\n", b->length); if (!V4L2_TYPE_IS_MULTIPLANAR(b->type) || !b->length || (b->length > VIDEO_MAX_PLANES)) { dprintk(VIDC_ERR, "%s: wrong input params\n", __func__); return -EINVAL; } Loading Loading @@ -968,9 +976,10 @@ int msm_vidc_dqbuf(void *instance, struct v4l2_buffer *b) if (!inst || !b) return -EINVAL; if (b->length > VIDEO_MAX_PLANES) { dprintk(VIDC_ERR, "num planes exceed maximum: %d\n", b->length); if (!V4L2_TYPE_IS_MULTIPLANAR(b->type) || !b->length || (b->length > VIDEO_MAX_PLANES)) { dprintk(VIDC_ERR, "%s: wrong input params\n", __func__); return -EINVAL; } Loading