Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202022
b: refs/heads/master
c: 0b21d55
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Mauro Carvalho Chehab committed Aug 2, 2010
1 parent 7511936 commit 240cd80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: feda79bffc19e5e1e442966853f58c3b9c7bac0b
refs/heads/master: 0b21d55f8904ff3d52262e91867f9eb2c0b472f3
5 changes: 2 additions & 3 deletions trunk/drivers/media/video/uvc/uvc_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,14 +637,13 @@ static int uvc_parse_streaming(struct uvc_device *dev,
}
streaming->header.bControlSize = n;

streaming->header.bmaControls = kmalloc(p*n, GFP_KERNEL);
streaming->header.bmaControls = kmemdup(&buffer[size], p * n,
GFP_KERNEL);
if (streaming->header.bmaControls == NULL) {
ret = -ENOMEM;
goto error;
}

memcpy(streaming->header.bmaControls, &buffer[size], p*n);

buflen -= buffer[0];
buffer += buffer[0];

Expand Down

0 comments on commit 240cd80

Please sign in to comment.