diff options
| author | Dan Carpenter <[email protected]> | 2018-06-21 08:06:41 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2018-06-24 21:00:36 +0000 |
| commit | 1dd2058f902eb2d8bd5bedab0b190a21d5245e71 (patch) | |
| tree | aa3907846de459b2010d51affc42bbffa0e62baf /drivers/gpu/drm/amd/amdgpu/amdgpu_test.c | |
| parent | Linux 4.18-rc2 (diff) | |
| download | kernel-1dd2058f902eb2d8bd5bedab0b190a21d5245e71.tar.gz kernel-1dd2058f902eb2d8bd5bedab0b190a21d5245e71.zip | |
cpufreq: qcom-kryo: Fix error handling in probe()
We should return if get_cpu_device() fails or it leads to a NULL
dereference. Also dev_pm_opp_of_get_opp_desc_node() returns NULL on
error, it never returns error pointers.
Fixes: 46e2856b8e18 (cpufreq: Add Kryo CPU scaling driver)
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_test.c')
0 files changed, 0 insertions, 0 deletions
