Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 241962
b: refs/heads/master
c: 793e71b
h: refs/heads/master
v: v3
  • Loading branch information
Paul Cassella authored and Mauro Carvalho Chehab committed Mar 21, 2011
1 parent 4621c17 commit fe25a14
Show file tree
Hide file tree
Showing 2 changed files with 7 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: e45c2be9704381971d78d711e58dec35b1c4cf6f
refs/heads/master: 793e71b667856ed6163ad0dc7de1f453e9385590
7 changes: 6 additions & 1 deletion trunk/drivers/media/video/ivtv/ivtv-udma.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,12 @@ int ivtv_udma_setup(struct ivtv *itv, unsigned long ivtv_dest_addr,
if (user_dma.page_count != err) {
IVTV_DEBUG_WARN("failed to map user pages, returned %d instead of %d\n",
err, user_dma.page_count);
return -EINVAL;
if (err >= 0) {
for (i = 0; i < err; i++)
put_page(dma->map[i]);
return -EINVAL;
}
return err;
}

dma->page_count = user_dma.page_count;
Expand Down

0 comments on commit fe25a14

Please sign in to comment.