public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] drm/sched: fix NULL deref when logging missing entity runqueue
@ 2026-06-03  2:56 Candice Li
  2026-06-03  5:58 ` Tvrtko Ursulin
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Candice Li @ 2026-06-03  2:56 UTC (permalink / raw)
  To: dri-devel; +Cc: Alexander Deucher, Christian Koenig, Hawking Zhang, Candice Li

job->sched is not initialized until drm_sched_job_arm(), so use
pr_err() instead of dev_err(job->sched->dev, ...) when entity->rq
is NULL.

Signed-off-by: Candice Li <candice.li@amd.com>
---
 drivers/gpu/drm/scheduler/sched_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/scheduler/sched_main.c b/drivers/gpu/drm/scheduler/sched_main.c
index bd7936c03da2aa..d21eada76cedf1 100644
--- a/drivers/gpu/drm/scheduler/sched_main.c
+++ b/drivers/gpu/drm/scheduler/sched_main.c
@@ -806,7 +806,7 @@ int drm_sched_job_init(struct drm_sched_job *job,
 		 * or worse--a blank screen--leave a trail in the
 		 * logs, so this can be debugged easier.
 		 */
-		dev_err(job->sched->dev, "%s: entity has no rq!\n", __func__);
+		pr_err("*ERROR* %s: entity has no rq!\n", __func__);
 		return -ENOENT;
 	}
 
-- 
2.25.1


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

end of thread, other threads:[~2026-06-04  1:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-03  2:56 [PATCH] drm/sched: fix NULL deref when logging missing entity runqueue Candice Li
2026-06-03  5:58 ` Tvrtko Ursulin
2026-06-03  7:00 ` Christian König
2026-06-03  7:06   ` Philipp Stanner
2026-06-03  7:10     ` Philipp Stanner
2026-06-04  1:58 ` Claude review: " Claude Code Review Bot
2026-06-04  1:58 ` Claude Code Review Bot

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