diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2019-08-30 10:51:56 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-09-11 19:10:12 +0200 |
commit | 016049a816774edc9c3cd81afa7724d7ab001585 (patch) | |
tree | a3de6b294e81063138c80328544bc60a03f7cccb /drivers/platform/x86 | |
parent | 616368735e4aa6e3d25cd3474b746014ee490a7b (diff) | |
download | linux-016049a816774edc9c3cd81afa7724d7ab001585.tar.bz2 |
software node: Initialize the return value in software_node_find_by_name()
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_find_by_name()")
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/platform/x86')
0 files changed, 0 insertions, 0 deletions