lkml.org 
[lkml]   [2019]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.4 065/158] media: coda: Remove unbalanced and unneeded mutex unlock
    Date
    From: Ezequiel Garcia <ezequiel@collabora.com>

    commit 766b9b168f6c75c350dd87c3e0bc6a9b322f0013 upstream.

    The mutex unlock in the threaded interrupt handler is not paired
    with any mutex lock. Remove it.

    This bug has been here for a really long time, so it applies
    to any stable repo.

    Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
    Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
    Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
    Cc: stable@vger.kernel.org
    Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/media/platform/coda/coda-bit.c | 1 -
    1 file changed, 1 deletion(-)

    --- a/drivers/media/platform/coda/coda-bit.c
    +++ b/drivers/media/platform/coda/coda-bit.c
    @@ -2107,7 +2107,6 @@ irqreturn_t coda_irq_handler(int irq, vo
    if (ctx == NULL) {
    v4l2_err(&dev->v4l2_dev,
    "Instance released before the end of transaction\n");
    - mutex_unlock(&dev->coda_mutex);
    return IRQ_HANDLED;
    }


    \
     
     \ /
      Last update: 2019-08-02 12:09    [W:4.175 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site