]> git.baikalelectronics.ru Git - kernel.git/commit
param: fix setting arrays of bool
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 29 Oct 2009 14:56:19 +0000 (08:56 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 28 Oct 2009 22:26:20 +0000 (08:56 +1030)
commit8c367b1a590adbc7c480782413868eaba3dc5fb6
tree6b8d84acb92196b0f9f044f98fd1908f8f655c87
parenta09b055c1b3649c4ac999d1db13892634a9ef37d
param: fix setting arrays of bool

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>
Cc: stable@kernel.org
kernel/params.c