]> git.karo-electronics.de Git - linux-beck.git/commitdiff
isp1704_charger: Correct length for storing model
authorAmeya Palande <ameya.palande@nokia.com>
Thu, 4 Nov 2010 14:31:46 +0000 (16:31 +0200)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Thu, 18 Nov 2010 13:56:18 +0000 (16:56 +0300)
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>
drivers/power/isp1704_charger.c

index 72512185f3e281febf049f23dde76464782ed92c..87252e13e29cad67eadfd2839aaca574f88546c9 100644 (file)
@@ -59,7 +59,7 @@ struct isp1704_charger {
        struct notifier_block   nb;
        struct work_struct      work;
 
-       char                    model[7];
+       char                    model[8];
        unsigned                present:1;
 };