[062/119] V4L/DVB (13321): radio-gemtek-pci: fix double mutex_lock

Greg KH
2009-12-07T00:25:49Z

[-- Attachment #1: v4l-dvb-13321-radio-gemtek-pci-fix-double-mutex_lock.patch --]
[-- Type: text/plain, Size: 985 bytes --]

2.6.31-stable review patch. If anyone has any objections, please let us know.

------------------
From: Hans Verkuil <hverkuil@xs4all.nl>

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: Greg Kroah-Hartman <gregkh@suse.de>

---
drivers/media/radio/radio-gemtek-pci.c | 2 --
1 file changed, 2 deletions(-)

--- a/drivers/media/radio/radio-gemtek-pci.c
+++ b/drivers/media/radio/radio-gemtek-pci.c
@@ -181,12 +181,10 @@ static void gemtek_pci_mute(struct gemte

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)