aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pci-host-common.c
diff options
context:
space:
mode:
authorDmitry Osipenko <[email protected]>2019-06-23 17:50:53 +0000
committerViresh Kumar <[email protected]>2019-06-24 07:18:29 +0000
commit560d1bcad715c215e7ffe5d7cffe045974b623d0 (patch)
tree39b37ff7641b9e322a61817da99df4b9efaf5645 /drivers/pci/controller/pci-host-common.c
parentopp: Make dev_pm_opp_set_rate() handle freq = 0 to drop performance votes (diff)
downloadkernel-560d1bcad715c215e7ffe5d7cffe045974b623d0.tar.gz
kernel-560d1bcad715c215e7ffe5d7cffe045974b623d0.zip
opp: Don't use IS_ERR on invalid supplies
_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 <[email protected]> Fixes: 7e535993fa4f ("OPP: Separate out custom OPP handler specific code") Reported-by: Marc Dietrich <[email protected]> Signed-off-by: Dmitry Osipenko <[email protected]> [ Viresh: Massaged changelog ] Signed-off-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-common.c')
0 files changed, 0 insertions, 0 deletions