|
@@ -872,8 +872,8 @@ int __video_register_device(struct video_device *vdev, int type, int nr,
|
|
|
|
|
|
/* Should not happen since we thought this minor was free */
|
|
/* Should not happen since we thought this minor was free */
|
|
WARN_ON(video_device[vdev->minor] != NULL);
|
|
WARN_ON(video_device[vdev->minor] != NULL);
|
|
- video_device[vdev->minor] = vdev;
|
|
|
|
vdev->index = get_index(vdev);
|
|
vdev->index = get_index(vdev);
|
|
|
|
+ video_device[vdev->minor] = vdev;
|
|
mutex_unlock(&videodev_lock);
|
|
mutex_unlock(&videodev_lock);
|
|
|
|
|
|
if (vdev->ioctl_ops)
|
|
if (vdev->ioctl_ops)
|