From: Ameya Palande Date: Thu, 4 Nov 2010 14:31:46 +0000 (+0200) Subject: isp1704_charger: Correct length for storing model X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=746d8fb8c6933337c927f40c9ef90dcbddcfd39e;p=linux-beck.git isp1704_charger: Correct length for storing model Model should have room to accommodate the trailing null byte, "isp170[4|7]\0". Signed-off-by: Ameya Palande Acked-by: Heikki Krogerus Signed-off-by: Anton Vorontsov --- diff --git a/drivers/power/isp1704_charger.c b/drivers/power/isp1704_charger.c index 72512185f3e2..87252e13e29c 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; };