1. 26 3月, 2019 1 次提交
  2. 19 3月, 2019 1 次提交
    • S
      regulator: core: fix error path for regulator_set_voltage_unlocked · 70b46491
      Steve Twiss 提交于
      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: 9243a195 ("regulator: core: Change voltage setting path")
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: NSteve Twiss <stwiss.opensource@diasemi.com>
      Reviewed-by: NDmitry Osipenko <digetx@gmail.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      70b46491
  3. 04 3月, 2019 14 次提交
  4. 28 2月, 2019 1 次提交
  5. 27 2月, 2019 4 次提交
  6. 26 2月, 2019 7 次提交
  7. 22 2月, 2019 8 次提交
  8. 21 2月, 2019 4 次提交