mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
windows-scache-ref-leak-20061012
make sure the scache mutex is held across calls to cm_SyncOpDone
This commit is contained in:
parent
e8a6b9977e
commit
2b96ba5919
@ -1039,7 +1039,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);
|
||||
@ -1899,7 +1901,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);
|
||||
|
Loading…
Reference in New Issue
Block a user