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>
This commit is contained in:
parent
5070437cd9
commit
746d8fb8c6
|
@ -59,7 +59,7 @@ struct isp1704_charger {
|
|||
struct notifier_block nb;
|
||||
struct work_struct work;
|
||||
|
||||
char model[7];
|
||||
char model[8];
|
||||
unsigned present:1;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue