summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorGiedrius Statkevičius <giedrius.statkevicius@gmail.com>2017-03-25 18:00:49 +0200
committerBen Hutchings <ben@decadent.org.uk>2017-08-26 02:14:31 +0100
commit1d4198c528dafc809f6bca277018359aa43b2953 (patch)
tree9c19d91750a6887c43523dc79ce7570db25cc801 /kernel
parentae57d1462b4ec9c3bbc09b5254bd19e0c795b5a1 (diff)
power: supply: lp8788: prevent out of bounds array access
commit bdd9968d35f7fcdb76089347d1529bf079534214 upstream. val might become 7 in which case stime[7] (array of length 7) would be accessed during the scnprintf call later and that will cause issues. Obviously, string concatenation is not intended here so just a comma needs to be added to fix the issue. Fixes: 98a276649358 ("power_supply: Add new lp8788 charger driver") Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@gmail.com> Acked-by: Milo Kim <milo.kim@ti.com> Signed-off-by: Sebastian Reichel <sre@kernel.org> [bwh: Backported to 3.16: adjust filename] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions