Skip to content

Commit

Permalink
V4L/DVB (10173): Missing v4l2_prio_close in radio_release
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Udo Steinberg authored and Mauro Carvalho Chehab committed Jan 3, 2009
1 parent 763d19b commit b15dd79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/video/bt8xx/bttv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -3472,6 +3472,7 @@ static int radio_release(struct file *file)
struct bttv *btv = fh->btv;
struct rds_command cmd;

v4l2_prio_close(&btv->prio,&fh->prio);
file->private_data = NULL;
kfree(fh);

Expand Down

0 comments on commit b15dd79

Please sign in to comment.