aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/params.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/params.c')
-rw-r--r--kernel/params.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/params.c b/kernel/params.c
index 5538608bd339..5513844bec13 100644
--- a/kernel/params.c
+++ b/kernel/params.c
@@ -314,9 +314,10 @@ int param_array(const char *name,
314int param_array_set(const char *val, struct kernel_param *kp) 314int param_array_set(const char *val, struct kernel_param *kp)
315{ 315{
316 struct kparam_array *arr = kp->arg; 316 struct kparam_array *arr = kp->arg;
317 unsigned int temp_num;
317 318
318 return param_array(kp->name, val, 1, arr->max, arr->elem, 319 return param_array(kp->name, val, 1, arr->max, arr->elem,
319 arr->elemsize, arr->set, arr->num ?: &arr->max); 320 arr->elemsize, arr->set, arr->num ?: &temp_num);
320} 321}
321 322
322int param_array_get(char *buffer, struct kernel_param *kp) 323int param_array_get(char *buffer, struct kernel_param *kp)