[PATCH] Missing attribute list NULL terminator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I've never submitted a patch before or posted to a kernel mailing list, so I
hope I've done everything necessary.  The following patch is against Linus's
tree.  Please let me know if I've screwed anything up, or if this is not a
genuine bug.

Thanks and regards,
Matt

=================

The lp5523_attributes array is missing a null-terminator.  This patch
adds it.

Signed-off-by: Matt Renzelmann <mjr@xxxxxxxxxxx>
---
>From 3dae6f19c86ede0edeeea499e592b640e42e811a Mon Sep 17 00:00:00 2001
From: Matt Renzelmann <mjr@xxxxxxxxxxx>
Date: Wed, 11 Apr 2012 15:04:38 -0500
Subject: [PATCH] Missing attribute list NULL terminator

---
 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


_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux