From caf9ba229f8a0b3bc924367080011910bbbdc051 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 25 Mar 2020 10:40:49 -0700 Subject: [PATCH] gpu: nvgpu: unit: Remove invalid dereference test_tsg_format_gen() accessed test_args->timeslice when test_args has not been initialized. Change-Id: Ia72c5371c8634b7b1fe54c9aa20693edc47cb762 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2318389 Reviewed-by: automaticguardword Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-misra Reviewed-by: Thomas Fleury Reviewed-by: Alex Waterman Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions --- userspace/units/fifo/runlist/nvgpu-runlist.c | 1 - 1 file changed, 1 deletion(-) diff --git a/userspace/units/fifo/runlist/nvgpu-runlist.c b/userspace/units/fifo/runlist/nvgpu-runlist.c index ca891159c..99b822c23 100644 --- a/userspace/units/fifo/runlist/nvgpu-runlist.c +++ b/userspace/units/fifo/runlist/nvgpu-runlist.c @@ -327,7 +327,6 @@ int test_tsg_format_gen(struct unit_module *m, struct gk20a *g, void *args) F_RUNLIST_FORMAT_CH1_TIMESLICE | F_RUNLIST_FORMAT_CH3_INACTIVE2 | fail; - (void)test_args->timeslice; setup_fifo(g, &active_tsgs_map, &active_chs_map, tsgs, chs, 1, 5, &runlists, rl_data, false);