kernel/fs/ocfs2/dlmglue.c
.. .. @@ -3396,10 +3396,12 @@ 3396 3396 ocfs2_lock_res_free(&osb->osb_nfs_sync_lockres); 3397 3397 ocfs2_lock_res_free(&osb->osb_orphan_scan.os_lockres); 3398 3398 3399 - ocfs2_cluster_disconnect(osb->cconn, hangup_pending);3400 - osb->cconn = NULL;3399 + if (osb->cconn) {3400 + ocfs2_cluster_disconnect(osb->cconn, hangup_pending);3401 + osb->cconn = NULL;3401 3402 3402 - ocfs2_dlm_shutdown_debug(osb);3403 + ocfs2_dlm_shutdown_debug(osb);3404 + }3403 3405 } 3404 3406 3405 3407 static int ocfs2_drop_lock(struct ocfs2_super *osb,