diff options
author | Heikki Krogerus <[email protected]> | 2019-08-30 10:51:55 +0300 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2019-09-04 23:03:19 +0200 |
commit | 616368735e4aa6e3d25cd3474b746014ee490a7b (patch) | |
tree | 84935b2c525746c3a8f72e31ef4c43e2773ed111 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 3a2650a878b814735430b1b7a25fd190dfacf22e (diff) |
software node: Initialize the return value in software_node_to_swnode()
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 even if the list is empty.
Fixes: 80488a6b1d3c ("software node: Add support for static node descriptors")
Reported-by: kbuild test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Heikki Krogerus <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions