mbox series

[0/2] OPP: Couple of smatch warning fixes

Message ID 20230721124634.63612-1-manivannan.sadhasivam@linaro.org (mailing list archive)
Headers show
Series OPP: Couple of smatch warning fixes | expand

Message

Manivannan Sadhasivam July 21, 2023, 12:46 p.m. UTC
Hi Viresh,

This series has a couple of fixes spotted by smatch tool in the OPP core.
This is on top of v6.5-rc1, so could be merged separately.

- Mani

Manivannan Sadhasivam (2):
  OPP: Fix potential null ptr dereference in
    dev_pm_opp_get_required_pstate()
  OPP: Fix passing 0 to PTR_ERR in _opp_attach_genpd()

 drivers/opp/core.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

Comments

Viresh Kumar July 24, 2023, 8:02 a.m. UTC | #1
On 21-07-23, 18:16, Manivannan Sadhasivam wrote:
> Hi Viresh,
> 
> This series has a couple of fixes spotted by smatch tool in the OPP core.
> This is on top of v6.5-rc1, so could be merged separately.
> 
> - Mani
> 
> Manivannan Sadhasivam (2):
>   OPP: Fix potential null ptr dereference in
>     dev_pm_opp_get_required_pstate()
>   OPP: Fix passing 0 to PTR_ERR in _opp_attach_genpd()
> 
>  drivers/opp/core.c | 10 ++++------
>  1 file changed, 4 insertions(+), 6 deletions(-)

Applied. Thanks.