Skip to content

Commit

Permalink
V4L/DVB (13321): radio-gemtek-pci: fix double mutex_lock
Browse files Browse the repository at this point in the history
Double mutexlock found by the Linux Driver Verification project and
reported by Alexander Strakh.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
CC: stable@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Nov 26, 2009
1 parent a8a8a66 commit 3addbb8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/media/radio/radio-gemtek-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3addbb8

Please sign in to comment.