These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / media / v4l2-core / v4l2-event.c
index 8761aab..8d3171c 100644 (file)
@@ -172,6 +172,9 @@ void v4l2_event_queue(struct video_device *vdev, const struct v4l2_event *ev)
        unsigned long flags;
        struct timespec timestamp;
 
+       if (vdev == NULL)
+               return;
+
        ktime_get_ts(&timestamp);
 
        spin_lock_irqsave(&vdev->fh_lock, flags);