aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/symbols.py
diff options
context:
space:
mode:
authorSteve Twiss <[email protected]>2019-03-18 16:17:57 +0000
committerMark Brown <[email protected]>2019-03-19 13:02:45 +0000
commit70b464918e5331e488058870fcc6821d54c4e541 (patch)
tree5daff430c2e5c730438a5b71de87fddd8f1b64cf /scripts/gdb/linux/symbols.py
parente5680c4de3eb3ea5538d11733a91ccef19badd69 (diff)
regulator: core: fix error path for regulator_set_voltage_unlocked
During several error paths in the function regulator_set_voltage_unlocked() the value of 'ret' can take on negative error values. However, in calls that go through the 'goto out' statement, this return value is lost and return 0 is used instead, indicating a 'pass'. There are several cases where this function should legitimately return a fail instead of a pass: one such case includes constraints check during voltage selection in the call to regulator_check_voltage(), which can have -EINVAL for the case when an unsupported voltage is incorrectly requested. In that case, -22 is expected as the return value, not 0. Fixes: 9243a195be7a ("regulator: core: Change voltage setting path") Cc: stable <[email protected]> Signed-off-by: Steve Twiss <[email protected]> Reviewed-by: Dmitry Osipenko <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/symbols.py')
0 files changed, 0 insertions, 0 deletions