cluster/gfs-kernel/src/dlm thread.c
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4
Changes by: teigland at sourceware.org 2007-08-31 15:23:33
Modified files:
gfs-kernel/src/dlm: thread.c
Log message:
Check for a null lvb pointer before trying to memset the lvb to zero. I think there's a good chance this will fix bz 176838.
gfs-kernel/src/dlm/Attic/thread.c +7 -2
@@ -116,8 +116,13 @@ goto out; } -if (lp->lksb.sb_flags &DLM_SBF_VALNOTVALID ) -memset (lp->lksb.sb_lvbptr,0 ,DLM_LVB_LEN ); +if (lp->lksb.sb_flags &DLM_SBF_VALNOTVALID ) { +if (lp->lksb.sb_lvbptr) +memset (lp->lksb.sb_lvbptr,0 ,DLM_LVB_LEN ); +else +log_all ("no lvb for VALNOTVALID lkid %x" , + lp->lksb.sb_lkid); + }if (lp->lksb.sb_flags &DLM_SBF_ALTMODE ) {if (lp->req ==DLM_LOCK_PR )