Grab the mfi_config_lock while performing a MFI_DCMD_CFG_FOREIGN_IMPORT

request on behalf of a user utility.

Submitted by:	Steven Hartland  killing multiplay co uk
MFC after:	1 week
This commit is contained in:
John Baldwin 2012-09-26 14:14:06 +00:00
parent 2193c1b48a
commit 7f6194d6a6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240962

View File

@ -2550,6 +2550,7 @@ mfi_config_lock(struct mfi_softc *sc, uint32_t opcode)
case MFI_DCMD_LD_DELETE:
case MFI_DCMD_CFG_ADD:
case MFI_DCMD_CFG_CLEAR:
case MFI_DCMD_CFG_FOREIGN_IMPORT:
sx_xlock(&sc->mfi_config_lock);
return (1);
default: