drm/xe: Fix ref counting leak on page fault
authorMatthew Brost <matthew.brost@intel.com>
Fri, 1 Mar 2024 04:10:36 +0000 (20:10 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 4 Mar 2024 14:41:25 +0000 (08:41 -0600)
commitf7da398935f7ddabf1a098714593e032c875cd74
treedb42351091d185309298ee281463ab76a2011827
parentc6f6750bd2566a9b06e0ae8a68597168d38da475
drm/xe: Fix ref counting leak on page fault

If a page fault occurs on VM not in fault a ref can be leaked. Fix this.

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240301041036.238471-1-matthew.brost@intel.com
(cherry picked from commit 27b5a3f237fe66dbf2288c2b50973aee8a427e41)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_gt_pagefault.c