Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167923
b: refs/heads/master
c: 3c7d76e
h: refs/heads/master
i:
  167921: 23b4b55
  167919: 25280cf
v: v3
  • Loading branch information
Rusty Russell committed Oct 28, 2009
1 parent 5aa2665 commit 439b384
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d553ad864e3b3dde3f1038d491e207021b2d6293
refs/heads/master: 3c7d76e371ac1a3802ae1673f5c63554af59325c
5 changes: 4 additions & 1 deletion trunk/kernel/params.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ static int param_array(const char *name,
unsigned int min, unsigned int max,
void *elem, int elemsize,
int (*set)(const char *, struct kernel_param *kp),
u16 flags,
unsigned int *num)
{
int ret;
Expand All @@ -309,6 +310,7 @@ static int param_array(const char *name,
/* Get the name right for errors. */
kp.name = name;
kp.arg = elem;
kp.flags = flags;

/* No equals sign? */
if (!val) {
Expand Down Expand Up @@ -354,7 +356,8 @@ int param_array_set(const char *val, struct kernel_param *kp)
unsigned int temp_num;

return param_array(kp->name, val, 1, arr->max, arr->elem,
arr->elemsize, arr->set, arr->num ?: &temp_num);
arr->elemsize, arr->set, kp->flags,
arr->num ?: &temp_num);
}

int param_array_get(char *buffer, struct kernel_param *kp)
Expand Down

0 comments on commit 439b384

Please sign in to comment.