summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom-at-vmware-dot-com>2009-04-28 21:02:03 +0200
committerThomas Hellstrom <thellstrom-at-vmware-dot-com>2009-04-28 21:07:54 +0200
commit24e42a3bd135e7b04dfd46be49f8632e78ab1290 (patch)
tree5870e85a46bbfdab45242a8b1fc2030f34fe10a8
parent70b084c84ab1f85d8702af7affcc7ee1396a010b (diff)
ttm: Fix an illegal state transition.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
-rw-r--r--linux-core/ttm/ttm_tt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/ttm/ttm_tt.c b/linux-core/ttm/ttm_tt.c
index 3e8bf3ed..afd60e71 100644
--- a/linux-core/ttm/ttm_tt.c
+++ b/linux-core/ttm/ttm_tt.c
@@ -467,8 +467,8 @@ void ttm_tt_unbind(struct ttm_tt *ttm)
if (ttm->state == tt_bound) {
ret = be->func->unbind(be);
BUG_ON(ret);
+ ttm->state = tt_unbound;
}
- ttm->state = tt_unbound;
}
int ttm_tt_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem)