projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5070437
)
isp1704_charger: Correct length for storing model
author
Ameya Palande
<ameya.palande@nokia.com>
Thu, 4 Nov 2010 14:31:46 +0000
(16:31 +0200)
committer
Anton 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
patch
|
blob
|
history
diff --git
a/drivers/power/isp1704_charger.c
b/drivers/power/isp1704_charger.c
index 72512185f3e281febf049f23dde76464782ed92c..87252e13e29cad67eadfd2839aaca574f88546c9 100644
(file)
--- a/
drivers/power/isp1704_charger.c
+++ b/
drivers/power/isp1704_charger.c
@@
-59,7
+59,7
@@
struct isp1704_charger {
struct notifier_block nb;
struct work_struct work;
- char model[
7
];
+ char model[
8
];
unsigned present:1;
};