Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174511
b: refs/heads/master
c: 447aeb9
h: refs/heads/master
i:
  174509: 2bb593a
  174507: cf4eec0
  174503: f9df54e
  174495: 2e504e3
v: v3
  • Loading branch information
Dave Airlie committed Dec 7, 2009
1 parent c229d2f commit d38eb0e
Show file tree
Hide file tree
Showing 2 changed files with 4 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: ab2c0672984f7f7ebec6d5f615fd5a6ebad26f3d
refs/heads/master: 447aeb907e417e0e837b4a4026d5081c88b6e8ca
5 changes: 3 additions & 2 deletions trunk/drivers/gpu/drm/ttm/ttm_bo.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,10 @@ static int ttm_bo_add_ttm(struct ttm_buffer_object *bo, bool zero_alloc)
bo->ttm = ttm_tt_create(bdev, bo->num_pages << PAGE_SHIFT,
page_flags | TTM_PAGE_FLAG_USER,
glob->dummy_read_page);
if (unlikely(bo->ttm == NULL))
if (unlikely(bo->ttm == NULL)) {
ret = -ENOMEM;
break;
break;
}

ret = ttm_tt_set_user(bo->ttm, current,
bo->buffer_start, bo->num_pages);
Expand Down

0 comments on commit d38eb0e

Please sign in to comment.