diff options
-rw-r--r-- | drivers/media/video/videobuf-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/videobuf-core.c b/drivers/media/video/videobuf-core.c index 48c3ebdb415f..f1ccf98c0a6f 100644 --- a/drivers/media/video/videobuf-core.c +++ b/drivers/media/video/videobuf-core.c | |||
@@ -118,6 +118,7 @@ void videobuf_queue_core_init(struct videobuf_queue *q, | |||
118 | void *priv, | 118 | void *priv, |
119 | struct videobuf_qtype_ops *int_ops) | 119 | struct videobuf_qtype_ops *int_ops) |
120 | { | 120 | { |
121 | BUG_ON(!q); | ||
121 | memset(q, 0, sizeof(*q)); | 122 | memset(q, 0, sizeof(*q)); |
122 | q->irqlock = irqlock; | 123 | q->irqlock = irqlock; |
123 | q->dev = dev; | 124 | q->dev = dev; |