diff options
author | Ameya Palande <ameya.palande@nokia.com> | 2010-11-04 15:31:46 +0100 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-11-18 14:56:18 +0100 |
commit | 746d8fb8c6933337c927f40c9ef90dcbddcfd39e (patch) | |
tree | 2eb0ac8a4f923e792479e5ea32d1f59d6234abeb /drivers/power/isp1704_charger.c | |
parent | power_supply: Add gpio charger driver (diff) | |
download | linux-746d8fb8c6933337c927f40c9ef90dcbddcfd39e.tar.xz linux-746d8fb8c6933337c927f40c9ef90dcbddcfd39e.zip |
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 <ameya.palande@nokia.com>
Acked-by: Heikki Krogerus <heikki.krogerus@nokia.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | 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 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; }; |