drm/ttm: make ttm_bo_unpin more defensive
authorChristian König <christian.koenig@amd.com>
Fri, 12 Mar 2021 08:34:39 +0000 (09:34 +0100)
committerChristian König <christian.koenig@amd.com>
Mon, 15 Mar 2021 15:02:30 +0000 (16:02 +0100)
commit6c5403173a13a08ff61dbdafa4c0ed4a9dedbfe0
tree252b7a35e0158f3769a45a4978a438269ffe5624
parentde066e116306baf3a6a62691ac63cfc0b1dabddb
drm/ttm: make ttm_bo_unpin more defensive

We seem to have some more driver bugs than thought.

Signed-off-by: Christian König <christian.koenig@amd.com>
Fixes: deb0814b43f3 ("drm/ttm: add ttm_bo_pin()/ttm_bo_unpin() v2")
Acked-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210312093810.2202-1-christian.koenig@amd.com
include/drm/ttm/ttm_bo_api.h