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)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Wed, 24 Jan 2024 10:13:41 +0000 (11:13 +0100)
commitd186e51b0ed05a0cd94c7c9756740a855325c557
tree993505c81fe0a30b42740ae590a2ddb8ab67d5c2
parentc0e2508cb1004fdb153fbbcf0101404abfefdddd
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
(cherry picked from commit f6bf0424cadc27d7cf6a049d2db960e4b52fa513)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
drivers/gpu/drm/xe/xe_vm.c