ocfs2-fix-double-free-in-user_cluster_connect.patch removed from -mm tree
The quilt patch titled
Subject: ocfs2: fix double free in user_cluster_connect()
has been removed from the -mm tree. Its filename was
ocfs2-fix-double-free-in-user_cluster_connect.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Dan Carpenter <[email protected]>
Subject: ocfs2: fix double free in user_cluster_connect()
Date: Tue, 23 Sep 2025 14:26:07 +0300
user_cluster_disconnect() frees "conn->cc_private" which is "lc" but then the error handling frees "lc" a second time. Set "lc" to NULL on this path to avoid a double free.
---
fs/ocfs2/stack_user.c | 1 + 1 file changed, 1 insertion(+)
fs/ocfs2/stack_user.c renamed from fs/ocfs2/stack_user.c~ocfs2-fix-double-free-in-user_cluster_connect +1 -0
@@ -1011,6 +1011,7 @@ static int user_cluster_connect(struct oprintk (KERN_ERR "ocfs2: Could not determine" " locking version\n" );user_cluster_disconnect (conn); + lc =NULL ; goto out; }wait_event (lc->oc_wait, (atomic_read (&lc->oc_this_node) >0 ));
_
Patches currently in -mm which might be from [email protected] are