Mercurial > illumos > illumos-gate
changeset 9949:0b51f50e7928
6853773 plx_ro_disable needs to check for NULL hdr
author | Erwin T Tsaur <Erwin.Tsaur@Sun.COM> |
---|---|
date | Mon, 22 Jun 2009 20:46:04 -0700 |
parents | 5ece0f7c6e83 |
children | 78fc41aa9bc5 |
files | usr/src/uts/sun4/io/px/px_pci.c |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/sun4/io/px/px_pci.c Tue Jun 23 09:40:11 2009 +0800 +++ b/usr/src/uts/sun4/io/px/px_pci.c Mon Jun 22 20:46:04 2009 -0700 @@ -2265,13 +2265,9 @@ val ^= PLX_RO_MODE_BIT; ddi_put32(hdl, (uint32_t *)port_offset, val); - goto done; - -fail: - DBG(DBG_ATTACH, dip, "PLX RO Disable failed.\n"); - done: ddi_regs_map_free(&hdl); +fail: kmem_free(reg_spec, new_rsize); } #endif /* PX_PLX */