summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2020-05-23 20:32:55 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-27 13:18:49 +0300
commit2d4100632fa1947bf3e8d7a091e94e2cf21923af (patch)
tree13e75ed339ab036f65f1935660c5ca0c7ae41079 /tools
parent5e02f3b31704e24537697bce54f8156bdb72b7a6 (diff)
downloadlinux-2d4100632fa1947bf3e8d7a091e94e2cf21923af.tar.xz
w1: omap-hdq: fix return value to be -1 if there is a timeout
omap_w1_read_byte() should return -1 (or 0xff) in case of error (e.g. missing battery). The code accidentially overwrites the variable ret and not val, which is returned. So it will return the initial value 0 instead of -1. Fixes: 27d13da8782a ("w1: omap-hdq: Simplify driver with PM runtime autosuspend") Cc: stable@vger.kernel.org # v5.6+ Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> Link: https://lore.kernel.org/r/b2c2192b461fbb9b8e9bea4ad514a49557a7210b.1590255176.git.hns@goldelico.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions