[PATCH] drivers/leds/leds-lp5523.c: add attribute list NULL terminator

From: mjr
Date: Thu Apr 12 2012 - 17:48:08 EST


From: Matt Renzelmann <mjr@xxxxxxxxxxx>

Our driver testing tool found that the lp5523_attributes array is
missing a null-terminator. All other attribute arrays need one. This
patch adds it.

Signed-off-by: Matt Renzelmann <mjr@xxxxxxxxxxx>
---
drivers/leds/leds-lp5523.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/leds/leds-lp5523.c b/drivers/leds/leds-lp5523.c
index 857a3e1..397091f 100644
--- a/drivers/leds/leds-lp5523.c
+++ b/drivers/leds/leds-lp5523.c
@@ -755,6 +755,7 @@ static struct attribute *lp5523_attributes[] = {
&dev_attr_engine2_leds.attr,
&dev_attr_engine3_load.attr,
&dev_attr_engine3_leds.attr,
+ NULL
};

static const struct attribute_group lp5523_group = {
--
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/