During shutdown, deregister the shutdown hook from the correct event

handler.

MFC after:	2 weeks
This commit is contained in:
John Baldwin 2008-07-01 19:44:38 +00:00
parent 165b10b07b
commit 0328507287

View File

@ -688,7 +688,7 @@ mpt_pci_detach(device_t dev)
mpt_free_bus_resources(mpt);
mpt_raid_free_mem(mpt);
if (mpt->eh != NULL) {
EVENTHANDLER_DEREGISTER(shutdown_final, mpt->eh);
EVENTHANDLER_DEREGISTER(shutdown_post_sync, mpt->eh);
}
}
return(0);