Commit 6ea9a182 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

V4L/DVB (8857): v4l2-dev: replace panic with BUG

Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 20c104d0
......@@ -91,8 +91,11 @@ static void v4l2_chardev_release(struct kobject *kobj)
struct video_device *vfd = container_of(kobj, struct video_device, cdev.kobj);
mutex_lock(&videodev_lock);
if (video_device[vfd->minor] != vfd)
panic("videodev: bad release");
if (video_device[vfd->minor] != vfd) {
mutex_unlock(&videodev_lock);
BUG();
return;
}
/* Free up this device for reuse */
video_device[vfd->minor] = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment