]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit3c7d76e371ac1a3802ae1673f5c63554af59325c
tree6b8d84acb92196b0f9f044f98fd1908f8f655c87
parentd553ad864e3b3dde3f1038d491e207021b2d6293
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