diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2019-06-23 20:50:53 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-26 09:10:54 +0200 |
commit | 28a8baf3c627f3be8aa16890ec68ea5bba94f505 (patch) | |
tree | 213370f19a39b2d2621f88933cd52e9ff47044e9 /kernel/irq | |
parent | 02fbcac747e80ef506080646aecd19996f30a4dc (diff) | |
download | linux-stable-28a8baf3c627f3be8aa16890ec68ea5bba94f505.tar.gz linux-stable-28a8baf3c627f3be8aa16890ec68ea5bba94f505.tar.bz2 linux-stable-28a8baf3c627f3be8aa16890ec68ea5bba94f505.zip |
opp: Don't use IS_ERR on invalid supplies
commit 560d1bcad715c215e7ffe5d7cffe045974b623d0 upstream.
_set_opp_custom() receives a set of OPP supplies as its arguments and
the caller of it passes NULL when the supplies are not valid. But
_set_opp_custom(), by mistake, checks for error by performing
IS_ERR(old_supply) on it which will always evaluate to false.
The problem was spotted during of testing of upcoming update for the
NVIDIA Tegra CPUFreq driver.
Cc: stable <stable@vger.kernel.org>
Fixes: 7e535993fa4f ("OPP: Separate out custom OPP handler specific code")
Reported-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
[ Viresh: Massaged changelog ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/irq')
0 files changed, 0 insertions, 0 deletions