diff options
author | Julien Folly <julien.folly@gmail.com> | 2018-10-09 19:47:45 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-01 09:16:22 +0100 |
commit | 4ab1594e699ed2371e7ea9e6893b58e4038a40fc (patch) | |
tree | 97374ba99349d92fde7da6b66e341cadfaf60f61 /arch | |
parent | d11d985d0a8285cc308a61c2464ad68e8e1f4ff8 (diff) | |
download | linux-stable-4ab1594e699ed2371e7ea9e6893b58e4038a40fc.tar.gz linux-stable-4ab1594e699ed2371e7ea9e6893b58e4038a40fc.tar.bz2 linux-stable-4ab1594e699ed2371e7ea9e6893b58e4038a40fc.zip |
w1: IAD Register is yet readable trough iad sys file. Fix snprintf (%u for unsigned, count for max size).
[ Upstream commit 6eaafbb6998e999467cf78a76e155ee00e372b14 ]
IAD Register is yet readable trough the "iad" sys file.
A write to the "iad" sys file enables or disables the current
measurement, but it was not possible to get the measured value by
reading it.
Fix: %u in snprintf for unsigned values (vdd and vad)
Fix: Avoid possibles overflows (Usage of the 'count' variables)
Signed-off-by: Julien Folly <julien.folly@gmail.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions