Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137846
b: refs/heads/master
c: fdf9c99
h: refs/heads/master
v: v3
  • Loading branch information
Alexey Klimov authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 3ecdb83 commit d854b65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dc025d4a1afac9576987748f15e9ba47c7bd20db
refs/heads/master: fdf9c9979a355916433262ea5e5e64bed5def86e
6 changes: 6 additions & 0 deletions trunk/drivers/media/radio/dsbr100.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,10 @@ static int vidioc_s_frequency(struct file *file, void *priv,
if (radio->removed)
return -EIO;

mutex_lock(&radio->lock);
radio->curfreq = f->frequency;
mutex_unlock(&radio->lock);

retval = dsbr100_setfreq(radio, radio->curfreq);
if (retval < 0)
dev_warn(&radio->usbdev->dev, "Set frequency failed\n");
Expand Down Expand Up @@ -603,7 +606,10 @@ static int usb_dsbr100_close(struct file *file)
if (!radio)
return -ENODEV;

mutex_lock(&radio->lock);
radio->users = 0;
mutex_unlock(&radio->lock);

if (!radio->removed) {
retval = dsbr100_stop(radio);
if (retval < 0) {
Expand Down

0 comments on commit d854b65

Please sign in to comment.