diff --git a/kernel/params.c b/kernel/params.c index 5538608bd339b8ab81f1ea31d0cfc4797d19c84d..5513844bec1387855919f927965b2c8adf8b749d 100644 --- a/kernel/params.c +++ b/kernel/params.c @@ -314,9 +314,10 @@ int param_array(const char *name, int param_array_set(const char *val, struct kernel_param *kp) { struct kparam_array *arr = kp->arg; + unsigned int temp_num; return param_array(kp->name, val, 1, arr->max, arr->elem, - arr->elemsize, arr->set, arr->num ?: &arr->max); + arr->elemsize, arr->set, arr->num ?: &temp_num); } int param_array_get(char *buffer, struct kernel_param *kp)