Skip to content
Commit c71157c5 authored by Devendra Naga's avatar Devendra Naga Committed by Linus Walleij
Browse files

pinctrl: pinctrl-imx: free if of_get_parent fails to get the parent node



of_get_parent can return null if no parent node found, so the allocated new_map
should be freed.

Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Acked-by: default avatarDong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 3a86a5f8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment