Commit 746d8fb8 authored by Ameya Palande's avatar Ameya Palande Committed by Anton Vorontsov

isp1704_charger: Correct length for storing model

Model should have room to accommodate the trailing null byte,
"isp170[4|7]\0".
Signed-off-by: default avatarAmeya Palande <ameya.palande@nokia.com>
Acked-by: default avatarHeikki Krogerus <heikki.krogerus@nokia.com>
Signed-off-by: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
parent 5070437c
...@@ -59,7 +59,7 @@ struct isp1704_charger { ...@@ -59,7 +59,7 @@ struct isp1704_charger {
struct notifier_block nb; struct notifier_block nb;
struct work_struct work; struct work_struct work;
char model[7]; char model[8];
unsigned present:1; unsigned present:1;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment