Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155543
b: refs/heads/master
c: 916635b
h: refs/heads/master
i:
  155541: 90cb625
  155539: 46428af
  155535: ebebaa4
v: v3
  • Loading branch information
Roel Kluin authored and Dave Airlie committed Jul 15, 2009
1 parent ed9ea6b commit 8aefff2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 42dd8619940a153e950c4d2301cd5e49f7342f99
refs/heads/master: 916635bfcae5fec170ccd36f4b451cf7c5d23b9d
4 changes: 2 additions & 2 deletions trunk/drivers/gpu/drm/ttm/ttm_bo_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp,
goto out_unref;

kmap_offset = dev_offset - bo->vm_node->start;
if (unlikely(kmap_offset) >= bo->num_pages) {
if (unlikely(kmap_offset >= bo->num_pages)) {
ret = -EFBIG;
goto out_unref;
}
Expand Down Expand Up @@ -401,7 +401,7 @@ ssize_t ttm_bo_fbdev_io(struct ttm_buffer_object *bo, const char __user *wbuf,
bool dummy;

kmap_offset = (*f_pos >> PAGE_SHIFT);
if (unlikely(kmap_offset) >= bo->num_pages)
if (unlikely(kmap_offset >= bo->num_pages))
return -EFBIG;

page_offset = *f_pos & ~PAGE_MASK;
Expand Down

0 comments on commit 8aefff2

Please sign in to comment.