Here is updated version --- From: Cyrill Gorcunov This patch does fix possible NULL pointer dereference inside of strncmp() if of_get_property() failed. Signed-off-by: Cyrill Gorcunov ---