diff options
author | Toomas Soome <tsoome@me.com> | 2019-12-26 09:23:25 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2020-01-29 23:48:15 +0200 |
commit | c6f039c73ee9eb7e4acb232afaca51cdf9d30ff3 (patch) | |
tree | 4906910bfbdbc344a6c48f8760f09be68e9ac7c4 /usr/src/uts/common/os/sunpci.c | |
parent | 7093fd72e0be9a255aa4b1ed00a701f80699ac7d (diff) | |
download | illumos-gate-c6f039c73ee9eb7e4acb232afaca51cdf9d30ff3.tar.gz |
12172 genunix: variable may be used uninitialized
Reviewed by: John Levon <john.levon@joyent.com>
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/uts/common/os/sunpci.c')
-rw-r--r-- | usr/src/uts/common/os/sunpci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/uts/common/os/sunpci.c b/usr/src/uts/common/os/sunpci.c index 0dd4f4c206..209b269838 100644 --- a/usr/src/uts/common/os/sunpci.c +++ b/usr/src/uts/common/os/sunpci.c @@ -1006,7 +1006,7 @@ int pci_post_suspend(dev_info_t *dip) { pci_pm_context_t *p; - uint16_t pmcap, pmcsr, pcicmd; + uint16_t pmcap, pmcsr, pcicmd; uint_t length; int ret; int fromprop = 1; /* source of memory *p */ @@ -1023,6 +1023,7 @@ pci_post_suspend(dev_info_t *dip) return (DDI_FAILURE); } + pmcsr = 0; if (ddi_prop_lookup_byte_array(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS | DDI_PROP_NOTPROM, SAVED_PM_CONTEXT, (uchar_t **)&p, &length) != DDI_PROP_SUCCESS) { |