diff options
author | Ameya Palande <ameya.palande@nokia.com> | 2010-11-04 10:31:46 -0400 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2010-11-18 08:56:18 -0500 |
commit | 746d8fb8c6933337c927f40c9ef90dcbddcfd39e (patch) | |
tree | 2eb0ac8a4f923e792479e5ea32d1f59d6234abeb /drivers/power/isp1704_charger.c | |
parent | 5070437cd99511f69ae561f2ab417142a47a85ec (diff) |
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/isp1704_charger.c')
-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 { | |||
59 | struct notifier_block nb; | 59 | struct notifier_block nb; |
60 | struct work_struct work; | 60 | struct work_struct work; |
61 | 61 | ||
62 | char model[7]; | 62 | char model[8]; |
63 | unsigned present:1; | 63 | unsigned present:1; |
64 | }; | 64 | }; |
65 | 65 | ||