From 5616ba82b164acf79bd71ac3874a1453957cf412 Mon Sep 17 00:00:00 2001 From: Viswanath L Date: Tue, 1 Mar 2022 21:00:39 +0530 Subject: [PATCH] nvadsp: Fix uninitialized access Access module name from initialized location. CID: 490698 Bug 3512545 Change-Id: I8b6ece000342b424a3b0e1b0a29fb423d6801f16 Signed-off-by: Viswanath L Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2676344 Reviewed-by: svcacv Reviewed-by: svc_kernel_abi Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-cert Reviewed-by: Uday Gupta Reviewed-by: Sachin Nikam GVS: Gerrit_Virtual_Submit --- drivers/platform/tegra/nvadsp/app_loader_linker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/tegra/nvadsp/app_loader_linker.c b/drivers/platform/tegra/nvadsp/app_loader_linker.c index 303d6993..083a0d4a 100644 --- a/drivers/platform/tegra/nvadsp/app_loader_linker.c +++ b/drivers/platform/tegra/nvadsp/app_loader_linker.c @@ -3,7 +3,7 @@ * * ADSP OS App management * - * Copyright (C) 2014-2020 NVIDIA Corporation. All rights reserved. + * Copyright (C) 2014-2022 NVIDIA Corporation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and @@ -701,7 +701,7 @@ static struct adsp_module *setup_load_info(struct load_info *info) if (info->index.sym == 0) { dev_warn(dev, "%s: module has no symbols (stripped?)\n", - mod->name); + info->name); kfree(mod); return ERR_PTR(-ENOEXEC); }