mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-09-24 15:44:22 +00:00
V4L/DVB (13321): radio-gemtek-pci: fix double mutex_lock
commit 3addbb8075c00e2a2408c192bd1002dead26b2aa upstream. Double mutexlock found by the Linux Driver Verification project and reported by Alexander Strakh. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
975894c349
commit
7087c84b42
@@ -181,12 +181,10 @@ static void gemtek_pci_mute(struct gemtek_pci *card)
|
||||
|
||||
static void gemtek_pci_unmute(struct gemtek_pci *card)
|
||||
{
|
||||
mutex_lock(&card->lock);
|
||||
if (card->mute) {
|
||||
gemtek_pci_setfrequency(card, card->current_frequency);
|
||||
card->mute = false;
|
||||
}
|
||||
mutex_unlock(&card->lock);
|
||||
}
|
||||
|
||||
static int gemtek_pci_getsignal(struct gemtek_pci *card)
|
||||
|
||||
Reference in New Issue
Block a user