nvadsp: Fix uninitialized access

Access module name from initialized location.

CID: 490698

Bug 3512545

Change-Id: I8b6ece000342b424a3b0e1b0a29fb423d6801f16
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2676344
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Uday Gupta <udayg@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Viswanath L
2022-03-01 21:00:39 +05:30
committed by Laxman Dewangan
parent 77a7ea2c88
commit 5616ba82b1

View File

@@ -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);
}