Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54918
b: refs/heads/master
c: 98a1153
h: refs/heads/master
v: v3
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed May 8, 2007
1 parent 94afdfb commit 91cd40d
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 895bf69b8f24907f0efa11d8e84a7eac8e47bdac
refs/heads/master: 98a1153acdc2256f866599be701439577da77db3
4 changes: 3 additions & 1 deletion trunk/drivers/video/fb_defio.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ static struct page* fb_deferred_io_nopage(struct vm_area_struct *vma,
unsigned long offset;
struct page *page;
struct fb_info *info = vma->vm_private_data;
/* info->screen_base is in System RAM */
void *screen_base = (void __force *) info->screen_base;

offset = (vaddr - vma->vm_start) + (vma->vm_pgoff << PAGE_SHIFT);
if (offset >= info->fix.smem_len)
return NOPAGE_SIGBUS;

page = vmalloc_to_page(info->screen_base + offset);
page = vmalloc_to_page(screen_base + offset);
if (!page)
return NOPAGE_OOM;

Expand Down

0 comments on commit 91cd40d

Please sign in to comment.