6853773 plx_ro_disable needs to check for NULL hdr
authorErwin T Tsaur <Erwin.Tsaur@Sun.COM>
Mon, 22 Jun 2009 20:46:04 -0700
changeset 9949 0b51f50e7928
parent 9948 5ece0f7c6e83
child 9950 78fc41aa9bc5
6853773 plx_ro_disable needs to check for NULL hdr
usr/src/uts/sun4/io/px/px_pci.c
--- 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 */