Skip to content

Commit 435ad04

Browse files
morgwaiscaronni
authored andcommitted
dkms: read_conf: declare control var of a loop as local (fixes #565)
It was spilling out to callers causing unpredictable behaviors.
1 parent f7cf59e commit 435ad04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dkms.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ read_conf() {
814814
# Only set global BUILD_EXCLUSIVE_KERNEL_MAX if obsolete_by is set and no global or per-module restrictions exist
815815
if [[ $obsolete_by && ! $BUILD_EXCLUSIVE_KERNEL_MAX ]]; then
816816
# Check if we have any per-module KERNEL_MAX restrictions
817-
local has_per_module_max=false
817+
local i has_per_module_max=false
818818
for ((i=0; i < num_modules; i++)); do
819819
[[ ${BUILD_EXCLUSIVE_KERNEL_MAX[i]} ]] && has_per_module_max=true && break
820820
done

0 commit comments

Comments
 (0)