diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-30 14:40:47 +0200 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-30 14:40:47 +0200 |
commit | e7b6350e659ad24f5ccc604782154dbaf26c0cf5 (patch) | |
tree | d980a19f35c9c301378071bc79f7f565808a6c92 /linux | |
parent | 19c1ee13a8aa1ac1d046a717f327353a6ea9e6b0 (diff) | |
download | mediapointer-dvb-s2-e7b6350e659ad24f5ccc604782154dbaf26c0cf5.tar.gz mediapointer-dvb-s2-e7b6350e659ad24f5ccc604782154dbaf26c0cf5.tar.bz2 |
v4l2-dev: replace panic with BUG
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/video/v4l2-dev.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/linux/drivers/media/video/v4l2-dev.c b/linux/drivers/media/video/v4l2-dev.c index 0d081cb91..a2daea31c 100644 --- a/linux/drivers/media/video/v4l2-dev.c +++ b/linux/drivers/media/video/v4l2-dev.c @@ -111,8 +111,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; |