projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20c104d
)
V4L/DVB (8857): v4l2-dev: replace panic with BUG
author
Hans Verkuil
<hverkuil@xs4all.nl>
Sat, 30 Aug 2008 12:40:47 +0000
(09:40 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sun, 12 Oct 2008 11:36:56 +0000
(09:36 -0200)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-dev.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/v4l2-dev.c
b/drivers/media/video/v4l2-dev.c
index 02b9cc76d36b1066924af2ab00ffb66135562035..7addf2fd55de45cda286735d1f91809b23c7d806 100644
(file)
--- a/
drivers/media/video/v4l2-dev.c
+++ b/
drivers/media/video/v4l2-dev.c
@@
-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;