Revert "drm/ttm: check null pointer before accessing when swapping"

This reverts commit d39971d902 which is
commit 2dedcf414b 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:
Greg Kroah-Hartman
2023-08-28 16:20:18 +00:00
parent 0dd121e0e6
commit 70435a8ac9
+1 -2
View File
@@ -674,8 +674,7 @@ static bool ttm_bo_evict_swapout_allowable(struct ttm_buffer_object *bo,
if (bo->pin_count) {
*locked = false;
if (busy)
*busy = false;
*busy = false;
return false;
}