Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138987
b: refs/heads/master
c: d008877
h: refs/heads/master
i:
  138985: f530f2f
  138983: 84ce1b1
v: v3
  • Loading branch information
Dave Airlie committed Mar 29, 2009
1 parent 6b35744 commit b1af516
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 90f959bcb386da2c71613dcefc6a285e054a539e
refs/heads/master: d008877550d8ca8c6878dd494e50c1b9209f38d4
5 changes: 4 additions & 1 deletion trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,13 +446,16 @@ fast_shmem_write(struct page **pages,
int length)
{
char __iomem *vaddr;
unsigned long unwritten;

vaddr = kmap_atomic(pages[page_base >> PAGE_SHIFT], KM_USER0);
if (vaddr == NULL)
return -ENOMEM;
__copy_from_user_inatomic(vaddr + page_offset, data, length);
unwritten = __copy_from_user_inatomic(vaddr + page_offset, data, length);
kunmap_atomic(vaddr, KM_USER0);

if (unwritten)
return -EFAULT;
return 0;
}

Expand Down

0 comments on commit b1af516

Please sign in to comment.