windows-scache-ref-leak-20061012

make sure the scache mutex is held across calls to cm_SyncOpDone
This commit is contained in:
Jeffrey Altman 2006-10-12 06:57:40 +00:00
parent e8a6b9977e
commit 2b96ba5919

View File

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