Revert "drm/ttm: check null pointer before accessing when swapping"
This reverts commit d39971d902
which is
commit 2dedcf414bb01b8d966eb445db1d181d92304fb2 upstream.
It breaks the Android kernel abi, and is not needed for any Android
devices at this time. If it is needed in the future, it can be brought
back in an abi-safe way.
Bug: 161946584
Change-Id: I3df03d40d2e60351b9fee2ba30b5cd3dcd1cf35f
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -674,8 +674,7 @@ static bool ttm_bo_evict_swapout_allowable(struct ttm_buffer_object *bo,
|
|||||||
|
|
||||||
if (bo->pin_count) {
|
if (bo->pin_count) {
|
||||||
*locked = false;
|
*locked = false;
|
||||||
if (busy)
|
*busy = false;
|
||||||
*busy = false;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user