summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2023-07-21 18:16:34 +0530
committerViresh Kumar <viresh.kumar@linaro.org>2023-07-24 13:31:25 +0530
commitd920920f85a82c1c806a4143871a0e8f534732f2 (patch)
treefc60273abd480dfa354896a86a1ce86ee039e0d5 /ipc
parent7ddd8deb1c3c0363a7e14fafb5df26e2089a69a5 (diff)
downloadlinux-stable-d920920f85a82c1c806a4143871a0e8f534732f2.tar.gz
linux-stable-d920920f85a82c1c806a4143871a0e8f534732f2.tar.bz2
linux-stable-d920920f85a82c1c806a4143871a0e8f534732f2.zip
OPP: Fix passing 0 to PTR_ERR in _opp_attach_genpd()
If dev_pm_domain_attach_by_name() returns NULL, then 0 will be passed to PTR_ERR() as reported by the smatch warning below: drivers/opp/core.c:2456 _opp_attach_genpd() warn: passing zero to 'PTR_ERR' Fix it by checking for the non-NULL virt_dev pointer before passing it to PTR_ERR. Otherwise return -ENODEV. Fixes: 4ea9496cbc95 ("opp: Fix error check in dev_pm_opp_attach_genpd()") Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions