summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/media/usb/cx231xx/cx231xx-vbi.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/media/usb/cx231xx/cx231xx-vbi.c')
-rw-r--r--kernel/drivers/media/usb/cx231xx/cx231xx-vbi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/drivers/media/usb/cx231xx/cx231xx-vbi.c b/kernel/drivers/media/usb/cx231xx/cx231xx-vbi.c
index 80261ac40..a08014d20 100644
--- a/kernel/drivers/media/usb/cx231xx/cx231xx-vbi.c
+++ b/kernel/drivers/media/usb/cx231xx/cx231xx-vbi.c
@@ -192,8 +192,7 @@ static void free_buffer(struct videobuf_queue *vq, struct cx231xx_buffer *buf)
struct cx231xx_fh *fh = vq->priv_data;
struct cx231xx *dev = fh->dev;
unsigned long flags = 0;
- if (in_interrupt())
- BUG();
+ BUG_ON(in_interrupt());
/* We used to wait for the buffer to finish here, but this didn't work
because, as we were keeping the state as VIDEOBUF_QUEUED,