[PATCH v4 0/1] drm/xe: Prevent null pointer access in xe_migrate_copy
Zhanjun Dong
zhanjun.dong at intel.com
Fri Sep 27 16:13:07 UTC 2024
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
xe_migrate_copy designed to copy content of TTM resources. When source
resource is null, it will trigger a NULL pointer dereference in
xe_migrate_copy. To avoid this situation, update lacks source flag to
true for this case, the flag will trigger xe_migrate_clear rather than
xe_migrate_copy.
Fixes: 266c85885263 ("drm/xe/xe2: Handle flat ccs move for igfx.")
Signed-off-by: Zhanjun Dong <zhanjun.dong at intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Changes from prior revs:
v4:- Limit commit message within 75 characters per line
Minor commit message changes
v3:- Update commit message to include Fixes and issue stack trace
v2:- Drop changes in xe_migrate_copy
Update condition expression as suggested
Zhanjun Dong (1):
drm/xe: Prevent null pointer access in xe_migrate_copy
drivers/gpu/drm/xe/xe_bo.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--
2.34.1
More information about the Intel-xe
mailing list