Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242069
b: refs/heads/master
c: a9bb36a
h: refs/heads/master
i:
  242067: 3dfab4c
v: v3
  • Loading branch information
Andrzej Pietrasiewicz authored and Mauro Carvalho Chehab committed Mar 22, 2011
1 parent bdb6c60 commit 5833c30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 29e3fbd8edb31549fa8302c185bd0b915a43d8b8
refs/heads/master: a9bb36aa0d6547aa0ab3d5cfde08e8651bd460bc
2 changes: 2 additions & 0 deletions trunk/drivers/media/video/videobuf2-dma-sg.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ static void *vb2_dma_sg_alloc(void *alloc_ctx, unsigned long size)
fail_pages_alloc:
while (--i >= 0)
__free_page(buf->pages[i]);
kfree(buf->pages);

fail_pages_array_alloc:
vfree(buf->sg_desc.sglist);
Expand Down Expand Up @@ -176,6 +177,7 @@ static void *vb2_dma_sg_get_userptr(void *alloc_ctx, unsigned long vaddr,
num_pages_from_user, buf->sg_desc.num_pages);
while (--num_pages_from_user >= 0)
put_page(buf->pages[num_pages_from_user]);
kfree(buf->pages);

userptr_fail_pages_array_alloc:
vfree(buf->sg_desc.sglist);
Expand Down

0 comments on commit 5833c30

Please sign in to comment.