commit | 41795a8a3cff8e4ba54236ca16c3814ba9cd7f39 | [log] [tgz] |
---|---|---|
author | Jon Hunter <jonathanh@nvidia.com> | Fri Mar 04 10:55:15 2016 +0000 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Wed Mar 09 00:41:07 2016 +0100 |
tree | ba2adcb9e606cee93dbac2febc562805702e0fcd | |
parent | beda5fc1ff9b527059290a97b672d2ee0eb7b92f [diff] |
PM / Domains: Fix potential NULL pointer dereference In the function of_genpd_get_from_provider(), we never check to see if the argument 'genpdspec' is NULL before dereferencing it. Add error checking to handle any NULL pointers. Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Acked-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>