Re: [PATCH v2 -next] of: unittest: fix null pointer dereferencing in of_unittest_find_node_by_name()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 27 Jul 2023 16:02:46 +0800, Ruan Jinjie wrote:
> when kmalloc() fail to allocate memory in kasprintf(), name
> or full_name will be NULL, strcmp() will cause
> null pointer dereference.
> 
> Fixes: 0d638a07d3a1 ("of: Convert to using %pOF instead of full_name")
> Signed-off-by: Ruan Jinjie <ruanjinjie@xxxxxxxxxx>
> ---
> v2:
> - add fixes tag
> ---
>  drivers/of/unittest.c | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)
> 

Applied, thanks!




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux