param: fix setting arrays of bool
commit2367aa9bfd515bd76728b28d62a0fd00ef70832e
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 29 Oct 2009 14:56:19 +0000 (29 08:56 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Nov 2009 00:22:22 +0000 (9 16:22 -0800)
tree256e875f65f0839e0523bcb369b95c22433d8f8b
parenta8381266f673b5597f11fb9bad9ae196e9915f87
param: fix setting arrays of bool

commit 3c7d76e371ac1a3802ae1673f5c63554af59325c upstream.

We create a dummy struct kernel_param on the stack for parsing each
array element, but we didn't initialize the flags word.  This matters
for arrays of type "bool", where the flag indicates if it really is
an array of bools or unsigned int (old-style).

Reported-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/params.c