Commit e4bea919 authored by Shuhao Fu's avatar Shuhao Fu Committed by Danilo Krummrich
Browse files

drm/nouveau: fix bad ret code in nouveau_bo_move_prep



In `nouveau_bo_move_prep`, if `nouveau_mem_map` fails, an error code
should be returned. Currently, it returns zero even if vmm addr is not
correctly mapped.

Cc: stable@vger.kernel.org
Reviewed-by: default avatarPetr Vorel <pvorel@suse.cz>
Signed-off-by: default avatarShuhao Fu <sfual@cse.ust.hk>
Fixes: 9ce523cc ("drm/nouveau: separate buffer object backing memory from nvkm structures")
Signed-off-by: default avatarDanilo Krummrich <dakr@kernel.org>
parent 228c5d44
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment