Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/1] drm/xe: Prevent null pointer access in xe_migrate_copy
@ 2024-09-25  1:21 Zhanjun Dong
  2024-09-25  1:21 ` [PATCH v3 1/1] " Zhanjun Dong
                   ` (8 more replies)
  0 siblings, 9 replies; 14+ messages in thread
From: Zhanjun Dong @ 2024-09-25  1:21 UTC (permalink / raw)
  To: intel-xe
  Cc: Zhanjun Dong, Matthew Brost, Thomas Hellström,
	Himal Prasad Ghimiray, Matt Roper

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@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: Matt Roper <matthew.d.roper@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


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-09-26 21:41 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-25  1:21 [PATCH v3 0/1] drm/xe: Prevent null pointer access in xe_migrate_copy Zhanjun Dong
2024-09-25  1:21 ` [PATCH v3 1/1] " Zhanjun Dong
2024-09-26 20:00   ` Thomas Hellström
2024-09-26 21:41     ` Dong, Zhanjun
2024-09-26  5:37 ` ✓ CI.Patch_applied: success for drm/xe: Prevent null pointer access in xe_migrate_copy (rev2) Patchwork
2024-09-26  5:37 ` ✗ CI.checkpatch: warning " Patchwork
2024-09-26  5:38 ` ✓ CI.KUnit: success " Patchwork
2024-09-26  5:49 ` ✓ CI.Build: " Patchwork
2024-09-26  5:52 ` ✓ CI.Hooks: " Patchwork
2024-09-26  5:53 ` ✓ CI.checksparse: " Patchwork
2024-09-26  6:32 ` ✗ CI.BAT: failure " Patchwork
2024-09-26 13:53   ` Dong, Zhanjun
2024-09-26 18:20 ` ✗ CI.FULL: " Patchwork
2024-09-26 19:00   ` Dong, Zhanjun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox