diff options
author | Ameya Palande <ameya.palande@nokia.com> | 2010-11-04 16:31:46 +0200 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-11-18 16:56:18 +0300 |
commit | 746d8fb8c6933337c927f40c9ef90dcbddcfd39e (patch) | |
tree | 2eb0ac8a4f923e792479e5ea32d1f59d6234abeb /drivers | |
parent | 5070437cd99511f69ae561f2ab417142a47a85ec (diff) | |
download | linux-746d8fb8c6933337c927f40c9ef90dcbddcfd39e.tar.bz2 |
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 'drivers')
-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; }; |