|
@@ -1780,8 +1780,8 @@ out:
|
|
* Unreserve without putting on LRU to avoid swapping out an
|
|
* Unreserve without putting on LRU to avoid swapping out an
|
|
* already swapped buffer.
|
|
* already swapped buffer.
|
|
*/
|
|
*/
|
|
-
|
|
|
|
- reservation_object_unlock(bo->resv);
|
|
|
|
|
|
+ if (locked)
|
|
|
|
+ reservation_object_unlock(bo->resv);
|
|
kref_put(&bo->list_kref, ttm_bo_release_list);
|
|
kref_put(&bo->list_kref, ttm_bo_release_list);
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|