mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: unit: close the module dir
Call closedir on the opened load directory also on success; it was there only for the error path. Change-Id: I869c9e583fdf7453c752744b0af054d521717feb Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1916642 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Philip Elcan <pelcan@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Abdul Salam
parent
8c27191144
commit
2cafb5fe74
@@ -180,6 +180,7 @@ struct unit_module **core_load_modules(struct unit_fw *fw)
|
||||
|
||||
sort_modules_by_prio(modules, i);
|
||||
|
||||
closedir(load_dir);
|
||||
return modules;
|
||||
|
||||
err:
|
||||
|
||||
Reference in New Issue
Block a user