Commit fd7b6b31 authored by Shuhao Fu's avatar Shuhao Fu Committed by Greg Kroah-Hartman
Browse files

drm/nouveau: fix bad ret code in nouveau_bo_move_prep



commit e4bea919 upstream.

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>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 07c0125e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment