]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
media: venus: fix copy/paste error in return_buf_error
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 18 Aug 2017 16:07:19 +0000 (12:07 -0400)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 28 Sep 2017 14:36:13 +0000 (10:36 -0400)
BugLink: http://bugs.launchpad.net/bugs/1720154
commit 0de0ef6c3f2dd7e9965270683445917e10384ab0 upstream.

Call function v4l2_m2m_dst_buf_remove_by_buf() instead of
v4l2_m2m_src_buf_remove_by_buf()

Addresses-Coverity-ID: 1415317

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/media/platform/qcom/venus/helpers.c

index 5f4434c0a8f189c8bda5ca16fc37b04f5bead04a..2d6187904552408ede63e3b6e1201dbf2e3797d2 100644 (file)
@@ -243,7 +243,7 @@ static void return_buf_error(struct venus_inst *inst,
        if (vbuf->vb2_buf.type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE)
                v4l2_m2m_src_buf_remove_by_buf(m2m_ctx, vbuf);
        else
-               v4l2_m2m_src_buf_remove_by_buf(m2m_ctx, vbuf);
+               v4l2_m2m_dst_buf_remove_by_buf(m2m_ctx, vbuf);
 
        v4l2_m2m_buf_done(vbuf, VB2_BUF_STATE_ERROR);
 }