Skip to content

Commit d6b24cc

Browse files
singh-apoorva1510rodrigovivi
authored andcommitted
drm/i915/gt: Prevent uninitialized pointer reads
Initialize rq to NULL to prevent uninitialized pointer reads. Signed-off-by: Apoorva Singh <[email protected]> Reviewed-by: Krzysztof Karas <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent 0a1584e commit d6b24cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/gt/selftest_migrate.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ static int clear(struct intel_migrate *migrate,
262262
{
263263
struct drm_i915_private *i915 = migrate->context->engine->i915;
264264
struct drm_i915_gem_object *obj;
265-
struct i915_request *rq;
265+
struct i915_request *rq = NULL;
266266
struct i915_gem_ww_ctx ww;
267267
u32 *vaddr, val = 0;
268268
bool ccs_cap = false;

0 commit comments

Comments
 (0)