Re: [PATCH] ARM: EXYNOS: Handle of_find_device_by_node and kstrdup failures

2015-03-18 Thread Krzysztof Kozlowski
2015-02-24 16:42 GMT+01:00 Krzysztof Kozlowski : > On wto, 2015-02-03 at 18:28 +0100, Krzysztof Kozlowski wrote: >> Prevent possible NULL pointer dereference of pointer returned by >> of_find_device_by_node(). Handle this by skipping such power domain. >> >> Additionally fail the init on kstrdup()

Re: [PATCH] ARM: EXYNOS: Handle of_find_device_by_node and kstrdup failures

2015-02-24 Thread Krzysztof Kozlowski
On wto, 2015-02-03 at 18:28 +0100, Krzysztof Kozlowski wrote: > Prevent possible NULL pointer dereference of pointer returned by > of_find_device_by_node(). Handle this by skipping such power domain. > > Additionally fail the init on kstrdup() failure. Such case is actually > not fatal because the

[PATCH] ARM: EXYNOS: Handle of_find_device_by_node and kstrdup failures

2015-02-03 Thread Krzysztof Kozlowski
Prevent possible NULL pointer dereference of pointer returned by of_find_device_by_node(). Handle this by skipping such power domain. Additionally fail the init on kstrdup() failure. Such case is actually not fatal because the name for power domain allocated by kstrdup() is used only in printk. St