lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1334267007-10555-1-git-send-email-mjr@cs.wisc.edu>
Date:	Thu, 12 Apr 2012 16:43:27 -0500
From:	mjr@...wisc.edu
To:	linux-kernel@...r.kernel.org
Cc:	rpurdie@...ys.net, Matt Renzelmann <mjr@...wisc.edu>
Subject: [PATCH] drivers/leds/leds-lp5523.c: add attribute list NULL terminator

From: Matt Renzelmann <mjr@...wisc.edu>

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@...wisc.edu>
---
 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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ