Re: [PATCH v3 2/2] software node: Initialize the return value in software_node_find_by_name()

From: Greg Kroah-Hartman
Date: Wed Sep 04 2019 - 08:07:37 EST


On Fri, Aug 30, 2019 at 10:51:56AM +0300, Heikki Krogerus wrote:
> The software node is searched from a list that may be empty
> when the function is called. This makes sure that the
> function returns NULL if the list is empty.
>
> Fixes: 1666faedb567 ("software node: Add software_node_get_reference_args()")
> Reported-by: kbuild test robot <lkp@xxxxxxxxx>
> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Signed-off-by: Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx>

Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>