From 253ea916fd5122e1c182cb3ffbff1ac2eeea3991 Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Mon, 18 Aug 2025 23:22:02 +0200 Subject: fuse-io-uring: Release io-uring resources on io-uring startup failure Operation might continue without io-uring, so just free these resources. Signed-off-by: Bernd Schubert --- lib/fuse_uring.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/fuse_uring.c b/lib/fuse_uring.c index 53ef8db..104be14 100644 --- a/lib/fuse_uring.c +++ b/lib/fuse_uring.c @@ -803,6 +803,11 @@ int fuse_uring_start(struct fuse_session *se) pthread_mutex_unlock(&fuse_ring->thread_start_mutex); err: + if (err) { + /* Note all threads need to have been started */ + fuse_session_destruct_uring(fuse_ring); + se->uring.pool = fuse_ring; + } return err; } -- cgit v1.2.3