Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138938
b: refs/heads/master
c: 9537a48
h: refs/heads/master
v: v3
  • Loading branch information
Joerg Roedel authored and Ingo Molnar committed Mar 24, 2009
1 parent 33b3357 commit 4d70047
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: 35d40952dba7b0689a16bd1463fb7698f8dbe639
refs/heads/master: 9537a48ed4b9e4b738943d6da0a0fd4278adf905
13 changes: 8 additions & 5 deletions trunk/lib/dma-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,10 +722,11 @@ void debug_dma_map_page(struct device *dev, struct page *page, size_t offset,
entry->size = size;
entry->direction = direction;

if (map_single) {
void *addr = ((char *)page_address(page)) + offset;

if (map_single)
entry->type = dma_debug_single;

if (!PageHighMem(page)) {
void *addr = ((char *)page_address(page)) + offset;
check_for_stack(dev, addr);
check_for_illegal_area(dev, addr, size);
}
Expand Down Expand Up @@ -779,8 +780,10 @@ void debug_dma_map_sg(struct device *dev, struct scatterlist *sg,
entry->sg_call_ents = nents;
entry->sg_mapped_ents = mapped_ents;

check_for_stack(dev, sg_virt(s));
check_for_illegal_area(dev, sg_virt(s), s->length);
if (!PageHighMem(sg_page(s))) {
check_for_stack(dev, sg_virt(s));
check_for_illegal_area(dev, sg_virt(s), s->length);
}

add_dma_entry(entry);
}
Expand Down

0 comments on commit 4d70047

Please sign in to comment.