Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164266
b: refs/heads/master
c: d2be764
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Mauro Carvalho Chehab committed Sep 19, 2009
1 parent 0388a28 commit 2104dec
Show file tree
Hide file tree
Showing 2 changed files with 5 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: c6e56cd344da17134f3d57247d52eaf640107087
refs/heads/master: d2be76437c20161a31460306e555bb546e30dfc7
7 changes: 4 additions & 3 deletions trunk/drivers/media/video/uvc/uvc_video.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,14 @@ static int uvc_get_video_ctrl(struct uvc_streaming *stream,
int ret;

size = stream->dev->uvc_version >= 0x0110 ? 34 : 26;
if ((stream->dev->quirks & UVC_QUIRK_PROBE_DEF) &&
query == UVC_GET_DEF)
return -EIO;

data = kmalloc(size, GFP_KERNEL);
if (data == NULL)
return -ENOMEM;

if ((stream->dev->quirks & UVC_QUIRK_PROBE_DEF) && query == UVC_GET_DEF)
return -EIO;

ret = __uvc_query_ctrl(stream->dev, query, 0, stream->intfnum,
probe ? UVC_VS_PROBE_CONTROL : UVC_VS_COMMIT_CONTROL, data,
size, UVC_CTRL_STREAMING_TIMEOUT);
Expand Down

0 comments on commit 2104dec

Please sign in to comment.