aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorHeikki Krogerus <[email protected]>2019-08-30 10:51:56 +0300
committerRafael J. Wysocki <[email protected]>2019-09-11 19:10:12 +0200
commit016049a816774edc9c3cd81afa7724d7ab001585 (patch)
treea3de6b294e81063138c80328544bc60a03f7cccb /scripts/gcc-plugins/cyc_complexity_plugin.c
parent616368735e4aa6e3d25cd3474b746014ee490a7b (diff)
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 <[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