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