[RESEND PATCH v2 2/3] ARM: EXYNOS: Handle of_find_device_by_node and kstrdup failures

2015-04-22 Thread Krzysztof Kozlowski
From: Krzysztof Kozlowski k.kozlow...@samsung.com 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

[PATCH v2 2/3] ARM: EXYNOS: Handle of_find_device_by_node and kstrdup failures

2015-03-27 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.