1
0
Fork 0

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>
hifive-unleashed-5.1
Geert Uytterhoeven 2015-03-15 03:41:52 -07:00 committed by Bryan Wu
parent 9647507aff
commit a44b0f5edf
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ pca963x_dt_init(struct i2c_client *client, struct pca963x_chipdef *chip)
return ERR_PTR(-ENOMEM);
for_each_child_of_node(np, child) {
struct led_info led;
struct led_info led = {};
u32 reg;
int res;