diff options
| author | Li Jun <lijun01@kylinos.cn> | 2026-03-26 14:29:08 +0800 |
|---|---|---|
| committer | Huacai Chen <chenhuacai@loongson.cn> | 2026-03-26 14:29:08 +0800 |
| commit | 3a28daa9b7d7c2ddf2c722e9e95d7e0928bf0cd1 (patch) | |
| tree | eb98863dc5e80b5e1df1c4a64712dd4c410ca9c2 /include/mtd/git@git.tavy.me:linux.git | |
| parent | c369299895a591d96745d6492d4888259b004a9e (diff) | |
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>
Diffstat (limited to 'include/mtd/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
