Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263193
b: refs/heads/master
c: 7c4c396
h: refs/heads/master
i:
  263191: 92f4a99
v: v3
  • Loading branch information
Marcin Slusarz authored and Dave Airlie committed Aug 23, 2011
1 parent 4b44008 commit 9da29bd
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: ba95c45a78d57ac05bf45d81b92a6ec4d299695d
refs/heads/master: 7c4c3960dff109bc5db4c35da481c212dadb5eb5
4 changes: 3 additions & 1 deletion trunk/drivers/gpu/drm/ttm/ttm_bo.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,10 @@ static int ttm_bo_add_ttm(struct ttm_buffer_object *bo, bool zero_alloc)

ret = ttm_tt_set_user(bo->ttm, current,
bo->buffer_start, bo->num_pages);
if (unlikely(ret != 0))
if (unlikely(ret != 0)) {
ttm_tt_destroy(bo->ttm);
bo->ttm = NULL;
}
break;
default:
printk(KERN_ERR TTM_PFX "Illegal buffer object type\n");
Expand Down

0 comments on commit 9da29bd

Please sign in to comment.