From 2cafb5fe7448304c3dcfdde0e93d0522812e9991 Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Mon, 1 Oct 2018 15:35:14 +0300 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/1916642 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Philip Elcan Reviewed-by: Alex Waterman Reviewed-by: mobile promotions Tested-by: mobile promotions --- userspace/src/module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/userspace/src/module.c b/userspace/src/module.c index 3f1cb782f..deb18b0f7 100644 --- a/userspace/src/module.c +++ b/userspace/src/module.c @@ -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: