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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1288881109-18222-2-git-send-email-heikki.krogerus@nokia.com>
Date:	Thu,  4 Nov 2010 16:31:46 +0200
From:	Heikki Krogerus <heikki.krogerus@...ia.com>
To:	cbouatmailru@...il.com
Cc:	dwmw2@...radead.org, linux-kernel@...r.kernel.org,
	linux-usb@...r.kernel.org, ameya.palande@...ia.com,
	markus.lehtonen@...ia.com, heikki.krogerus@...ia.com
Subject: [PATCH 1/4] power_supply: isp1704: correct length for storing model

From: Ameya Palande <ameya.palande@...ia.com>

Model should have room to accommodate the trailing null
byte, "isp170[4|7]\0".

Signed-off-by: Ameya Palande <ameya.palande@...ia.com>
Acked-by: Heikki Krogerus <heikki.krogerus@...ia.com>
---
 drivers/power/isp1704_charger.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/power/isp1704_charger.c b/drivers/power/isp1704_charger.c
index 7251218..87252e1 100644
--- a/drivers/power/isp1704_charger.c
+++ b/drivers/power/isp1704_charger.c
@@ -59,7 +59,7 @@ struct isp1704_charger {
 	struct notifier_block	nb;
 	struct work_struct	work;
 
-	char			model[7];
+	char			model[8];
 	unsigned		present:1;
 };
 
-- 
1.7.1

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