hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/fs/ocfs2/dlmglue.c
....@@ -3396,10 +3396,12 @@
33963396 ocfs2_lock_res_free(&osb->osb_nfs_sync_lockres);
33973397 ocfs2_lock_res_free(&osb->osb_orphan_scan.os_lockres);
33983398
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;
34013402
3402
- ocfs2_dlm_shutdown_debug(osb);
3403
+ ocfs2_dlm_shutdown_debug(osb);
3404
+ }
34033405 }
34043406
34053407 static int ocfs2_drop_lock(struct ocfs2_super *osb,