Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

leds: pca963x: Add missing initialiation of struct led_info.flags

Only the name and default_trigger fields are initialized.
Other fields (currently flags only) contain random stack data.
Pre-initialize the led structure completely to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Bryan Wu <cooloney@gmail.com>

authored by

Geert Uytterhoeven and committed by
Bryan Wu
a44b0f5e 9647507a

+1 -1
+1 -1
drivers/leds/leds-pca963x.c
··· 289 289 return ERR_PTR(-ENOMEM); 290 290 291 291 for_each_child_of_node(np, child) { 292 - struct led_info led; 292 + struct led_info led = {}; 293 293 u32 reg; 294 294 int res; 295 295