Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126419
b: refs/heads/master
c: 58c6d3d
h: refs/heads/master
i:
  126417: 83c2279
  126415: 1e1056c
v: v3
  • Loading branch information
Johannes Weiner authored and Linus Torvalds committed Jan 6, 2009
1 parent 79f1d6f commit 507de41
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: eccd83e116e7f414a1da3aae3745384b7b171883
refs/heads/master: 58c6d3dfe436eb8cfb451981d8fdc9044eaf42da
2 changes: 2 additions & 0 deletions trunk/kernel/dma-coherent.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ int dma_alloc_from_coherent(struct device *dev, ssize_t size,
mem = dev->dma_mem;
if (!mem)
return 0;
if (unlikely(size > mem->size))
return 0;

pageno = bitmap_find_free_region(mem->bitmap, mem->size, order);
if (pageno >= 0) {
Expand Down

0 comments on commit 507de41

Please sign in to comment.