summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2005-04-01 12:26:21 +0000
committerXin LI <delphij@FreeBSD.org>2005-04-01 12:26:21 +0000
commitd1cb66d37aac49cd450640b1ccb92f36fc0d06b7 (patch)
treea7822c7a39240b305cd94f7ee60202baa6aca310 /sys/dev
parent47ca84ce2a3facfb2c3b4041dfce2ea4294f940e (diff)
Notes
Diffstat (limited to 'sys/dev')
-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 554535098f45..caf8e07573d5 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1044,8 +1044,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