DF-1744 / fix.diff
diff --git a/sys/dev/disk/mpt/mpt_pci.c b/sys/dev/disk/mpt/mpt_pci.c --- a/sys/dev/disk/mpt/mpt_pci.c +++ b/sys/dev/disk/mpt/mpt_pci.c @@ -654,12 +654,12 @@ mpt = (struct mpt_softc*)device_get_softc(dev); if (mpt) { + mpt_free_bus_resources(mpt); mpt_disable_ints(mpt); mpt_detach(mpt); mpt_reset(mpt, /*reinit*/FALSE); mpt_raid_free_mem(mpt); mpt_dma_mem_free(mpt); - mpt_free_bus_resources(mpt); #if 0 mpt_unlink_peer(mpt); #endif |