HGFS server must stop generating change directory notifications
before releasing objects that notification delivery code may use.
Moving call to stop notifications before invoking HgfsInvalidateSessionObjects
instead of doing it at the very end of session deleting sequence.
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
ASSERT(session->searchArray);
session->state = HGFS_SESSION_STATE_CLOSED;
-
- if (session->activeNotification) {
- HgfsNotify_CleanupSession(session);
- }
}
ASSERT(session->searchArray);
LOG(4, ("%s: Beginning\n", __FUNCTION__));
+ if (session->activeNotification) {
+ HgfsNotify_CleanupSession(session);
+ }
MXUser_AcquireExclLock(session->nodeArrayLock);