Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354717
b: refs/heads/master
c: 4d2079c
h: refs/heads/master
i:
  354715: 29ffdcf
v: v3
  • Loading branch information
Chen Gang authored and Greg Kroah-Hartman committed Feb 6, 2013
1 parent 0a242cd commit b67aed7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b11b2e1bdd18ba5cd0dde075d440b3894e6ce64f
refs/heads/master: 4d2079c190558dfa9b766a90a34cb30b8d49c8eb
3 changes: 2 additions & 1 deletion trunk/drivers/usb/gadget/f_uvc.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <linux/fs.h>
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/string.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
#include <linux/usb/video.h>
Expand Down Expand Up @@ -419,7 +420,7 @@ uvc_register_video(struct uvc_device *uvc)
video->parent = &cdev->gadget->dev;
video->fops = &uvc_v4l2_fops;
video->release = video_device_release;
strncpy(video->name, cdev->gadget->name, sizeof(video->name));
strlcpy(video->name, cdev->gadget->name, sizeof(video->name));

uvc->vdev = video;
video_set_drvdata(video, uvc);
Expand Down

0 comments on commit b67aed7

Please sign in to comment.