drm/xe/vm: bugfix in xe_vm_create_ioctl
authorMoti Haimovski <mhaimovski@habana.ai>
Mon, 22 Jan 2024 10:24:24 +0000 (12:24 +0200)
committerMatt Roper <matthew.d.roper@intel.com>
Mon, 22 Jan 2024 16:57:16 +0000 (08:57 -0800)
commitf6bf0424cadc27d7cf6a049d2db960e4b52fa513
tree1bc0c82fedfdcf98ff31dbf5e7e1529876bbe8b8
parent6a02867560f77328ae5637b70b06704b140aafa6
drm/xe/vm: bugfix in xe_vm_create_ioctl

Fix xe_vm_create_ioctl routine not freeing the vm-id allocated to it
when the function fails.

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Signed-off-by: Moti Haimovski <mhaimovski@habana.ai>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Tomer Tayar <ttayar@habana.ai>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240122102424.4008095-1-mhaimovski@habana.ai
drivers/gpu/drm/xe/xe_vm.c