Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254632
b: refs/heads/master
c: 66072d4
h: refs/heads/master
v: v3
  • Loading branch information
Marek Szyprowski authored and Mauro Carvalho Chehab committed Jul 1, 2011
1 parent 32d79fb commit f9b94c9
Show file tree
Hide file tree
Showing 2 changed files with 4 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: afdea8bac5e80362459940e18e705d792e677a57
refs/heads/master: 66072d4fa7cb644f1f064e290f8fddfbd8ccd478
6 changes: 3 additions & 3 deletions trunk/drivers/media/video/videobuf2-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,9 @@ int vb2_reqbufs(struct vb2_queue *q, struct v4l2_requestbuffers *req)
/* Finally, allocate buffers and video memory */
ret = __vb2_queue_alloc(q, req->memory, num_buffers, num_planes,
plane_sizes);
if (ret < 0) {
dprintk(1, "Memory allocation failed with error: %d\n", ret);
return ret;
if (ret == 0) {
dprintk(1, "Memory allocation failed\n");
return -ENOMEM;
}

/*
Expand Down

0 comments on commit f9b94c9

Please sign in to comment.