]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
media: coda: Remove unbalanced and unneeded mutex unlock
authorEzequiel Garcia <ezequiel@collabora.com>
Thu, 2 May 2019 22:00:43 +0000 (18:00 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 28 May 2019 16:22:12 +0000 (12:22 -0400)
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>
drivers/media/platform/coda/coda-bit.c

index a25f3742ecde7e65b1a269c2a711656b699415bd..19055c6488cc16b88c98d6607e119fd6a8a2b6bf 100644 (file)
@@ -2348,7 +2348,6 @@ irqreturn_t coda_irq_handler(int irq, void *data)
        if (ctx == NULL) {
                v4l2_err(&dev->v4l2_dev,
                         "Instance released before the end of transaction\n");
-               mutex_unlock(&dev->coda_mutex);
                return IRQ_HANDLED;
        }