DEVEL15-windows-scache-ref-leak-20061012

make sure the scache mutex is held across calls to cm_SyncOpDone


(cherry picked from commit 2b96ba59194831ef298585c4f82d574a0790f3a6)
This commit is contained in:
Jeffrey Altman 2006-10-12 06:59:25 +00:00
parent b5d4cf1a6e
commit e95eedf99f

View File

@ -1057,7 +1057,9 @@ long cm_IoctlDeleteMountPoint(struct smb_ioctl *ioctlp, struct cm_user *userp)
dscp, cp, NULL, TRUE);
done1:
lock_ObtainMutex(&scp->mx);
cm_SyncOpDone(scp, NULL, CM_SCACHESYNC_NEEDCALLBACK | CM_SCACHESYNC_GETSTATUS);
lock_ReleaseMutex(&scp->mx);
done2:
cm_ReleaseSCache(dscp);
@ -1917,7 +1919,9 @@ long cm_IoctlDeletelink(struct smb_ioctl *ioctlp, struct cm_user *userp)
dscp, cp, NULL, TRUE);
done1:
lock_ObtainMutex(&scp->mx);
cm_SyncOpDone(scp, NULL, CM_SCACHESYNC_NEEDCALLBACK | CM_SCACHESYNC_GETSTATUS);
lock_ReleaseMutex(&scp->mx);
done2:
cm_ReleaseSCache(dscp);