mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-21 15:45:02 +00:00
If bus_generic_susped returns an error, devlist is not freed. Free it.
Submitted by: Ted Unangst (using the Coverity Prevent analysis tool)
This commit is contained in:
parent
e0251bbbe7
commit
463ec0ac87
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143669
@ -1059,8 +1059,10 @@ pci_suspend(device_t dev)
|
||||
|
||||
/* Suspend devices before potentially powering them down. */
|
||||
error = bus_generic_suspend(dev);
|
||||
if (error)
|
||||
if (error) {
|
||||
free(devlist, M_TEMP);
|
||||
return (error);
|
||||
}
|
||||
|
||||
/*
|
||||
* Always set the device to D3. If ACPI suggests a different
|
||||
|
Loading…
Reference in New Issue
Block a user