summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-pca963x.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven2015-03-15 11:41:52 +0100
committerBryan Wu2015-03-30 20:55:48 +0200
commita44b0f5edfc63dc06af9bb0ae473f7852d8d2cb6 (patch)
treea42228eae3fb2c362982eab3a024314ccfe40458 /drivers/leds/leds-pca963x.c
parentleds: flash: Fix the size of sysfs_groups array (diff)
downloadkernel-qcow2-linux-a44b0f5edfc63dc06af9bb0ae473f7852d8d2cb6.tar.gz
kernel-qcow2-linux-a44b0f5edfc63dc06af9bb0ae473f7852d8d2cb6.tar.xz
kernel-qcow2-linux-a44b0f5edfc63dc06af9bb0ae473f7852d8d2cb6.zip
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>
Diffstat (limited to 'drivers/leds/leds-pca963x.c')
-rw-r--r--drivers/leds/leds-pca963x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-pca963x.c b/drivers/leds/leds-pca963x.c
index f110b4c456ba..bee3e1ab27fd 100644
--- a/drivers/leds/leds-pca963x.c
+++ b/drivers/leds/leds-pca963x.c
@@ -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;