diff options
author | Udo Steinberg <udo@hypervisor.org> | 2009-01-02 15:34:28 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-03 07:50:38 -0500 |
commit | b15dd79ea06b04a7ecee95f62ce7b6a3547dbb0a (patch) | |
tree | b2919b6bab52577cbabc9e7be9c2be3851f17941 /drivers/media/video | |
parent | 763d19bb90a005a339b7d5ba70a710bb17db2bab (diff) |
V4L/DVB (10173): Missing v4l2_prio_close in radio_release
The radio_release function of the BTTV driver is missing a call to
v4l2_prio_close. As a result, after the radio device has been opened at
least once (e.g., by HAL during bootup), v4l2_priority will never drop below
V4L2_PRIORITY_INTERACTIVE again. With the following patch against 2.6.28,
applications that run with V4L2_PRIORITY_BACKGROUND are able to open devices
again. Previous Linux versions are affected as well.
Signed-off-by: Udo Steinberg <udo@hypervisor.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/bt8xx/bttv-driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c index d2f43bd2f841..c71f394fc0ea 100644 --- a/drivers/media/video/bt8xx/bttv-driver.c +++ b/drivers/media/video/bt8xx/bttv-driver.c | |||
@@ -3472,6 +3472,7 @@ static int radio_release(struct file *file) | |||
3472 | struct bttv *btv = fh->btv; | 3472 | struct bttv *btv = fh->btv; |
3473 | struct rds_command cmd; | 3473 | struct rds_command cmd; |
3474 | 3474 | ||
3475 | v4l2_prio_close(&btv->prio,&fh->prio); | ||
3475 | file->private_data = NULL; | 3476 | file->private_data = NULL; |
3476 | kfree(fh); | 3477 | kfree(fh); |
3477 | 3478 | ||