summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2005-03-15 22:53:31 +0000
committerWarner Losh <imp@FreeBSD.org>2005-03-15 22:53:31 +0000
commit463ec0ac871f03e21674b446dc97d4def9b07bbf (patch)
tree1b08bb57c2a07530d4ebfd362b8b5dc6ebf4f645 /sys/dev/pci
parente0251bbbe72302572cc787d925b462cebc656e52 (diff)
Notes
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/pci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 172134763c1a..445b32b6a1d4 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