From: VMware, Inc <> Date: Thu, 18 Nov 2010 21:23:23 +0000 (-0800) Subject: Changes in shared code that don't affect open-vm-tools functionality. X-Git-Tag: 2010.11.17-327185~74 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=214cf2ee3389f77141af4df62737510d8104f944;p=thirdparty%2Fopen-vm-tools.git Changes in shared code that don't affect open-vm-tools functionality. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/lib/lock/ulStats.c b/open-vm-tools/lib/lock/ulStats.c index 6fec30fe3..768c22742 100644 --- a/open-vm-tools/lib/lock/ulStats.c +++ b/open-vm-tools/lib/lock/ulStats.c @@ -989,6 +989,10 @@ MXUser_PerLockData(void) { MXRecLock *listLock = MXUserInternalSingleton(&mxLockMemPtr); + if (mxUserStatsFunc == NULL) { + return; + } + if (listLock && MXRecLockTryAcquire(listLock)) { ListItem *entry; uint32 highestSerialNumber;