aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dump_stack.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2021-06-09 17:33:12 +0000
committerRafael J. Wysocki <[email protected]>2021-06-10 13:13:26 +0000
commit23db673d7e5194c8fbbb8c307e23960767305c09 (patch)
treebbc2608e415fb19567060e2563160fc6c13bf707 /lib/dump_stack.c
parentACPI: scan: Add function to fetch dependent of ACPI device (diff)
downloadkernel-23db673d7e5194c8fbbb8c307e23960767305c09.tar.gz
kernel-23db673d7e5194c8fbbb8c307e23960767305c09.zip
ACPI: scan: initialize local variable to avoid garbage being returned
In the unlikely event that there are no callback calls made in acpi_walk_dep_device_list(), local variable ret will be returned as an uninitialized value. Clean up static analysis warnings by ensuring ret is initialized. Addresses-Coverity: ("Uninitialized scalar variable") Fixes: a9e10e587304 ("ACPI: scan: Extend acpi_walk_dep_device_list()") Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Daniel Scally <[email protected]> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/dump_stack.c')
0 files changed, 0 insertions, 0 deletions