Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-iv
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-iv
  • Repository
Switch branch/tag
  • linux-iv
  • drivers
  • thermal
  • cpu_cooling.c
Find file BlameHistoryPermalink
  • Viresh Kumar's avatar
    thermal: cpu_cooling: Check OPP for errors · 3ea3217c
    Viresh Kumar authored Feb 07, 2017
    
    
    It is possible for dev_pm_opp_find_freq_exact() to return errors. It was
    all fine earlier as dev_pm_opp_get_voltage() had a check within it to
    check for invalid OPPs, but dev_pm_opp_put() doesn't have any similar
    checks and the callers need to make sure OPP is valid before calling
    them.
    
    Also update the later dev_warn_ratelimited() to not print the error
    message as the OPP is guaranteed to be valid now.
    
    Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
    Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
    3ea3217c