aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/staging/media/dt3155v4l/dt3155v4l.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/media/dt3155v4l/dt3155v4l.c b/drivers/staging/media/dt3155v4l/dt3155v4l.c
index 14bdc19ec48f..40580228a6c7 100644
--- a/drivers/staging/media/dt3155v4l/dt3155v4l.c
+++ b/drivers/staging/media/dt3155v4l/dt3155v4l.c
@@ -906,8 +906,10 @@ dt3155_probe(struct pci_dev *pdev, const struct pci_device_id *id)
906 if (!pd) 906 if (!pd)
907 return -ENOMEM; 907 return -ENOMEM;
908 pd->vdev = video_device_alloc(); 908 pd->vdev = video_device_alloc();
909 if (!pd->vdev) 909 if (!pd->vdev) {
910 err = -ENOMEM;
910 goto err_video_device_alloc; 911 goto err_video_device_alloc;
912 }
911 *pd->vdev = dt3155_vdev; 913 *pd->vdev = dt3155_vdev;
912 pci_set_drvdata(pdev, pd); /* for use in dt3155_remove() */ 914 pci_set_drvdata(pdev, pd); /* for use in dt3155_remove() */
913 video_set_drvdata(pd->vdev, pd); /* for use in video_fops */ 915 video_set_drvdata(pd->vdev, pd); /* for use in video_fops */