diff options
Diffstat (limited to 'sys/dev/pci/pci.c')
-rw-r--r-- | sys/dev/pci/pci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 1721347..445b32b 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -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 |