Loading
LoongArch: Fix missing NULL checks for kstrdup()
1. Replace "of_find_node_by_path("/")" with "of_root" to avoid multiple
calls to "of_node_put()".
2. Fix a potential kernel oops during early boot when memory allocation
fails while parsing CPU model from device tree.
Cc: stable@vger.kernel.org
Signed-off-by:
Li Jun <lijun01@kylinos.cn>
Signed-off-by:
Huacai Chen <chenhuacai@loongson.cn>