drm/xe: Prevent return with locked vm
authorPallavi Mishra <pallavi.mishra@intel.com>
Wed, 30 Aug 2023 23:25:58 +0000 (04:55 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:40:28 +0000 (11:40 -0500)
commit9c0d779fc67bd1810f74c22e219f4af24a4e1e29
tree93b9b41149a80c3ee607109a6d464dfe7e717868
parent14ec22408d2fa1d8671b619474381344b2bc859a
drm/xe: Prevent return with locked vm

Reorder vm_id check after the one for VISIBLE_VRAM. This should
prevent returning with locked vm in error scenario.

Signed-off-by: Pallavi Mishra <pallavi.mishra@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_bo.c