diff --git a/lustre/ptlrpc/import.c b/lustre/ptlrpc/import.c
index 7e471b0fc8af101040d8737293ba479f14a8c525..cf5e0bef6aac8f0d0c84742bb28d4de5af2daa5e 100644
--- a/lustre/ptlrpc/import.c
+++ b/lustre/ptlrpc/import.c
@@ -630,7 +630,7 @@ int ptlrpc_disconnect_import(struct obd_import *imp)
 out:
         IMPORT_SET_STATE_NOLOCK(imp, LUSTRE_IMP_CLOSED);
         memset(&imp->imp_remote_handle, 0, sizeof(imp->imp_remote_handle));
-        memset(&imp->imp_conn_cnt, 0, sizeof(imp->imp_conn_cnt));
+        imp->imp_conn_cnt = 0;
         spin_unlock_irqrestore(&imp->imp_lock, flags);
 
         RETURN(rc);