Skip to content
Commit ee9d7a0e authored by ruanjinjie's avatar ruanjinjie Committed by Rob Herring
Browse files

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



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>
parent 03871060
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment