[PATCH v3 0/1] drm/xe: Prevent null pointer access in xe_migrate_copy
Zhanjun Dong
zhanjun.dong at intel.com
Wed Sep 25 01:21:09 UTC 2024
xe_migrate_copy designed to copy content of TTM resources. When source resource
is null, it will trigger xe_migrate_copy have null pointer derefrenece. To
avoid this situation, update lacks source flag to true for this case, the flage
will trigger xe_migrate_clear rather than xe_migrate_copy.
Signed-off-by: Zhanjun Dong <zhanjun.dong at intel.com>
Cc: Matthew Brost <matthew.brost at intel.com>
Cc: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray at intel.com>
Cc: Matt Roper <matthew.d.roper at intel.com>
Changes from prior revs:
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