Skip to content
Snippets Groups Projects
Commit 9ec57818 authored by ruanjinjie's avatar ruanjinjie Committed by Greg Kroah-Hartman
Browse files

of: overlay: fix null pointer dereferencing in find_dup_cset_node_entry() and find_dup_cset_prop()


[ Upstream commit ee9d7a0e ]

When kmalloc() fail to allocate memory in kasprintf(), fn_1 or fn_2 will
be NULL, and strcmp() will cause null pointer dereference.

Fixes: 2fe0e876 ("of: overlay: check prevents multiple fragments touching same property")
Signed-off-by: default avatarruanjinjie <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20221211023337.592266-1-ruanjinjie@huawei.com


Signed-off-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a44490ab
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment