Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348943
b: refs/heads/master
c: 6305418
h: refs/heads/master
i:
  348941: 572a47b
  348939: decadf6
  348935: 0df85d4
  348927: d5027f0
v: v3
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Jan 21, 2013
1 parent 6f23675 commit 2f724b1
Show file tree
Hide file tree
Showing 2 changed files with 10 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: ffb5fd53ef27df22a6850019ecb5488686a573f1
refs/heads/master: 630541863b29f88c7ab34e647758344e4cd1eafd
11 changes: 9 additions & 2 deletions trunk/drivers/gpu/drm/ttm/ttm_bo_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,12 @@ int ttm_bo_move_memcpy(struct ttm_buffer_object *bo,

if (ttm->state == tt_unpopulated) {
ret = ttm->bdev->driver->ttm_tt_populate(ttm);
if (ret)
if (ret) {
/* if we fail here don't nuke the mm node
* as the bo still owns it */
old_copy.mm_node = NULL;
goto out1;
}
}

add = 0;
Expand All @@ -371,8 +375,11 @@ int ttm_bo_move_memcpy(struct ttm_buffer_object *bo,
prot);
} else
ret = ttm_copy_io_page(new_iomap, old_iomap, page);
if (ret)
if (ret) {
/* failing here, means keep old copy as-is */
old_copy.mm_node = NULL;
goto out1;
}
}
mb();
out2:
Expand Down

0 comments on commit 2f724b1

Please sign in to comment.