mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
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 <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2318389 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
7a71aba234
commit
caf9ba229f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user