diff options
| author | Colin Ian King <[email protected]> | 2016-10-25 16:33:27 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2016-10-27 11:00:32 +0000 |
| commit | a1fee00dc95644e0590b4f1a3755c9f6b1243b3a (patch) | |
| tree | 45cf5b081069f6cba6cde94dac3500face44b25e /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | PM / doc: Update device documentation for devices in IRQ-safe PM domains (diff) | |
| download | kernel-a1fee00dc95644e0590b4f1a3755c9f6b1243b3a.tar.gz kernel-a1fee00dc95644e0590b4f1a3755c9f6b1243b3a.zip | |
PM / Domains: check for negative return from of_count_phandle_with_args()
The return from of_count_phandle_with_args can be negative, so we
should avoid kcalloc of a negative count of genpd_power_stat structs
by sanity checking if count is zero or less.
Signed-off-by: Colin Ian King <[email protected]>
Acked-by: Kevin Hilman <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
