From 00751197c076c92d0cbc62bccdcf44554aa720b0 Mon Sep 17 00:00:00 2001 From: Luis Ferreira Date: Wed, 17 Apr 2024 10:27:44 +0100 Subject: [PATCH] fs/ocfs2: add explicit sizeof for struct ocfs2_dlm_lksb --- fs/ocfs2/dlmglue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c index 64a6ef638495c..a1b5f9d9416c8 100644 --- a/fs/ocfs2/dlmglue.c +++ b/fs/ocfs2/dlmglue.c @@ -787,7 +787,7 @@ void ocfs2_lock_res_free(struct ocfs2_lock_res *res) res->l_name, res->l_ex_holders); /* Need to clear out the lock status block for the dlm */ - memset(&res->l_lksb, 0, sizeof(res->l_lksb)); + memset(&res->l_lksb, 0, sizeof(struct ocfs2_dlm_lksb)); res->l_flags = 0UL; }