mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
of: unittest: fix null pointer dereferencing in of_unittest_find_node_by_name()
[ Upstream commitd6ce4f0ea1] when kmalloc() fail to allocate memory in kasprintf(), name or full_name will be NULL, strcmp() will cause null pointer dereference. Fixes:0d638a07d3("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>
This commit is contained in:
parent
39f5dc484e
commit
c74ae8124f
1 changed files with 6 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue