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!