From: Jonathan Cavitt <jonathan.cavitt@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: jonathan.cavitt@intel.com, saurabhg.gupta@intel.com,
alex.zuo@intel.com, jani.saarinen@intel.com
Subject: [PATCH] tests/intel/xe_exec_reset: Explicitly declare exec
Date: Mon, 14 Oct 2024 21:31:24 +0000 [thread overview]
Message-ID: <20241014213124.255668-1-jonathan.cavitt@intel.com> (raw)
In the gt-reset-stress subtest, we define a drm_xe_exec exec without
declaring any of its variable values. Explicitly declare exec to equal
an empty struct to prevent any values from being assigned garbage data
during execution.
Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
CC: Jani Saarinen <jani.saarinen@intel.com>
---
tests/intel/xe_exec_reset.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/intel/xe_exec_reset.c b/tests/intel/xe_exec_reset.c
index b5d5f43eab..fdfefa91cc 100644
--- a/tests/intel/xe_exec_reset.c
+++ b/tests/intel/xe_exec_reset.c
@@ -628,7 +628,7 @@ static void submit_jobs(struct gt_thread_data *t)
.engine_instance = 0,
.gt_id = 0,
};
- struct drm_xe_exec exec;
+ struct drm_xe_exec exec = {};
int ret;
/* GuC IDs can get exhausted */
--
2.43.0
next reply other threads:[~2024-10-14 21:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-14 21:31 Jonathan Cavitt [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-14 21:39 [PATCH] tests/intel/xe_exec_reset: Explicitly declare exec Jonathan Cavitt
2024-10-14 21:45 ` Dixit, Ashutosh
2024-10-14 21:50 ` Cavitt, Jonathan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241014213124.255668-1-jonathan.cavitt@intel.com \
--to=jonathan.cavitt@intel.com \
--cc=alex.zuo@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=jani.saarinen@intel.com \
--cc=saurabhg.gupta@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.