Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
of: unittest: fix null pointer dereferencing in of_unittest_find_node…
…_by_name() [ Upstream commit d6ce4f0 ] when kmalloc() fail to allocate memory in kasprintf(), name or full_name will be NULL, strcmp() will cause null pointer dereference. Fixes: 0d638a0 ("of: Convert to using %pOF instead of full_name") Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> Link: https://lore.kernel.org/r/20230727080246.519539-1-ruanjinjie@huawei.com Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information