Re: [PATCH] ocfs2: fix double free in user_cluster_connect()
From: Goldwyn Rodrigues
Date: Tue Sep 23 2025 - 08:52:33 EST
On 14:26 23/09, Dan Carpenter wrote:
> The user_cluster_disconnect() function 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.
>
> Fixes: c994c2ebdbbc ("ocfs2: use the new DLM operation callbacks while requesting new lockspace")
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Looks good. Thanks!
Reviewed-by: Goldwyn Rodrigues <rgoldwyn@xxxxxxx>
--
Goldwyn