Commit 3addbb80 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

V4L/DVB (13321): radio-gemtek-pci: fix double mutex_lock

Double mutexlock found by the Linux Driver Verification project and
reported by Alexander Strakh.
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
CC: stable@kernel.org
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent a8a8a669
...@@ -181,12 +181,10 @@ static void gemtek_pci_mute(struct gemtek_pci *card) ...@@ -181,12 +181,10 @@ static void gemtek_pci_mute(struct gemtek_pci *card)
static void gemtek_pci_unmute(struct gemtek_pci *card) static void gemtek_pci_unmute(struct gemtek_pci *card)
{ {
mutex_lock(&card->lock);
if (card->mute) { if (card->mute) {
gemtek_pci_setfrequency(card, card->current_frequency); gemtek_pci_setfrequency(card, card->current_frequency);
card->mute = false; card->mute = false;
} }
mutex_unlock(&card->lock);
} }
static int gemtek_pci_getsignal(struct gemtek_pci *card) static int gemtek_pci_getsignal(struct gemtek_pci *card)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment