Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285314
b: refs/heads/master
c: 6d00c9a
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Meyer authored and Mauro Carvalho Chehab committed Nov 24, 2011
1 parent 0937555 commit 2ddbf36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 0ceaec188e7784c7f9ab5fca110fecb790837dbc
refs/heads/master: 6d00c9aa2bb98909de21eaaf767b9ed76fe26f86
3 changes: 1 addition & 2 deletions trunk/drivers/media/video/pwc/pwc-ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,9 @@ static int _send_control_msg(struct pwc_device *pdev,
void *kbuf = NULL;

if (buflen) {
kbuf = kmalloc(buflen, GFP_KERNEL); /* not allowed on stack */
kbuf = kmemdup(buf, buflen, GFP_KERNEL); /* not allowed on stack */
if (kbuf == NULL)
return -ENOMEM;
memcpy(kbuf, buf, buflen);
}

rc = usb_control_msg(pdev->udev, usb_sndctrlpipe(pdev->udev, 0),
Expand Down

0 comments on commit 2ddbf36

Please sign in to comment.