Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/ xe_sync: Check NULL before dereferencing
@ 2023-12-06 22:30 Bommu Krishnaiah
  2024-03-22  8:28 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Bommu Krishnaiah @ 2023-12-06 22:30 UTC (permalink / raw)
  To: intel-xe; +Cc: Bommu Krishnaiah, Himal Prasad Ghimiray, Tejas Upadhyay

checking null pointer before dereferencing schedule job

Signed-off-by: Bommu Krishnaiah <krishnaiah.bommu@intel.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: Tejas Upadhyay <tejas.upadhyay@intel.com>
---
 drivers/gpu/drm/xe/xe_sync.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_sync.c b/drivers/gpu/drm/xe/xe_sync.c
index 02c9577fe418..3b977061bf9f 100644
--- a/drivers/gpu/drm/xe/xe_sync.c
+++ b/drivers/gpu/drm/xe/xe_sync.c
@@ -255,6 +255,9 @@ void xe_sync_entry_signal(struct xe_sync_entry *sync, struct xe_sched_job *job,
 			dma_fence_put(fence);
 		}
 	} else if (sync->type == DRM_XE_SYNC_TYPE_USER_FENCE) {
+		if (!job)
+			drm_err(&sync->ufence->xe->drm, "No schedule job fond\n");
+
 		job->user_fence.used = true;
 		job->user_fence.addr = sync->addr;
 		job->user_fence.value = sync->timeline_value;
-- 
2.25.1


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

end of thread, other threads:[~2024-03-22  9:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-06 22:30 [PATCH] drm/xe/ xe_sync: Check NULL before dereferencing Bommu Krishnaiah
2024-03-22  8:28 ` ✓ CI.Patch_applied: success for " Patchwork
2024-03-22  8:29 ` ✓ CI.checkpatch: " Patchwork
2024-03-22  8:29 ` ✓ CI.KUnit: " Patchwork
2024-03-22  8:36 ` [PATCH] " Nirmoy Das
2024-03-22  8:40 ` ✓ CI.Build: success for " Patchwork
2024-03-22  8:43 ` ✓ CI.Hooks: " Patchwork
2024-03-22  8:44 ` ✓ CI.checksparse: " Patchwork
2024-03-22  9:10 ` ✓ CI.BAT: " Patchwork

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