All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/gt: Prevent uninitialized pointer reads
@ 2024-12-27 11:29 apoorva.singh
  2024-12-27 12:08 ` ✗ i915.CI.BAT: failure for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: apoorva.singh @ 2024-12-27 11:29 UTC (permalink / raw)
  To: intel-gfx; +Cc: Apoorva Singh

From: Apoorva Singh <apoorva.singh@intel.com>

Initialize rq to NULL to prevent uninitialized pointer reads.

Signed-off-by: Apoorva Singh <apoorva.singh@intel.com>
---
 drivers/gpu/drm/i915/gt/selftest_migrate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/gt/selftest_migrate.c b/drivers/gpu/drm/i915/gt/selftest_migrate.c
index ca460cee4f8b..1bf7b88d9a9d 100644
--- a/drivers/gpu/drm/i915/gt/selftest_migrate.c
+++ b/drivers/gpu/drm/i915/gt/selftest_migrate.c
@@ -262,7 +262,7 @@ static int clear(struct intel_migrate *migrate,
 {
 	struct drm_i915_private *i915 = migrate->context->engine->i915;
 	struct drm_i915_gem_object *obj;
-	struct i915_request *rq;
+	struct i915_request *rq = NULL;
 	struct i915_gem_ww_ctx ww;
 	u32 *vaddr, val = 0;
 	bool ccs_cap = false;
-- 
2.34.1


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

end of thread, other threads:[~2025-01-08 14:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-27 11:29 [PATCH] drm/i915/gt: Prevent uninitialized pointer reads apoorva.singh
2024-12-27 12:08 ` ✗ i915.CI.BAT: failure for " Patchwork
2024-12-27 22:45 ` [PATCH] " Andi Shyti
2024-12-30 14:24   ` Krzysztof Karas
2025-01-08 14:00     ` Rodrigo Vivi
2024-12-30 14:26 ` Krzysztof Karas
2025-01-08  0:57 ` ✓ i915.CI.BAT: success for drm/i915/gt: Prevent uninitialized pointer reads (rev2) Patchwork
2025-01-08 10:03 ` ✗ i915.CI.Full: failure " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.