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>

authored by

Udo Steinberg and committed by
Mauro Carvalho Chehab
b15dd79e 763d19bb

+1
+1
drivers/media/video/bt8xx/bttv-driver.c
··· 3472 3472 struct bttv *btv = fh->btv; 3473 3473 struct rds_command cmd; 3474 3474 3475 + v4l2_prio_close(&btv->prio,&fh->prio); 3475 3476 file->private_data = NULL; 3476 3477 kfree(fh); 3477 3478