aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/pwc/pwc-if.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/usb/pwc/pwc-if.c')
-rw-r--r--drivers/media/usb/pwc/pwc-if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/pwc/pwc-if.c b/drivers/media/usb/pwc/pwc-if.c
index 54b036d39c5b..72704f4d5330 100644
--- a/drivers/media/usb/pwc/pwc-if.c
+++ b/drivers/media/usb/pwc/pwc-if.c
@@ -1027,7 +1027,7 @@ static int usb_pwc_probe(struct usb_interface *intf, const struct usb_device_id
1027 1027
1028 /* Init video_device structure */ 1028 /* Init video_device structure */
1029 pdev->vdev = pwc_template; 1029 pdev->vdev = pwc_template;
1030 strcpy(pdev->vdev.name, name); 1030 strscpy(pdev->vdev.name, name, sizeof(pdev->vdev.name));
1031 pdev->vdev.queue = &pdev->vb_queue; 1031 pdev->vdev.queue = &pdev->vb_queue;
1032 pdev->vdev.queue->lock = &pdev->vb_queue_lock; 1032 pdev->vdev.queue->lock = &pdev->vb_queue_lock;
1033 video_set_drvdata(&pdev->vdev, pdev); 1033 video_set_drvdata(&pdev->vdev, pdev);