summaryrefslogtreecommitdiffstats
path: root/samples/hw_breakpoint
diff options
context:
space:
mode:
authorKangjie Lu <kjlu@umn.edu>2018-12-19 06:04:13 +0100
committerMark Brown <broonie@kernel.org>2018-12-19 13:37:52 +0100
commit966e927bf8cc6a44f8b72582a1d6d3ffc73b12ad (patch)
treeca43c6c5bf5f25abc61cbd98f59ce734a3401ad2 /samples/hw_breakpoint
parentregulator: act8945a-regulator: fix 'defined but not used' compiler warning (diff)
downloadlinux-966e927bf8cc6a44f8b72582a1d6d3ffc73b12ad.tar.xz
linux-966e927bf8cc6a44f8b72582a1d6d3ffc73b12ad.zip
drivers/regulator: fix a missing check of return value
If palmas_smps_read() fails, we should not use the read data in "reg" which may contain random value. The fix inserts a check for the return value of palmas_smps_read(): If it fails, we return the error code upstream and stop using "reg". Signed-off-by: Kangjie Lu <kjlu@umn.edu> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'samples/hw_breakpoint')
0 files changed, 0 insertions, 0 deletions