mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue