mirror of
https://github.com/libfuse/libfuse.git
synced 2026-07-07 14:47:41 +08:00
fuse_uring: Null pool pointer after fuse_uring_stop
fuse_uring_stop() frees the ring pool via fuse_session_destruct_uring() but does not null se->uring.pool afterwards, leaving a dangling pointer. While no current code path dereferences the pool after stop, this is a latent maintenance hazard — any future access would hit freed memory. The error path in fuse_uring_start() already nulls se->uring.pool on failure; apply the same discipline in the normal teardown path. Signed-off-by: Abhinav Agarwal <abhinavagarwal1996@gmail.com>
This commit is contained in:
committed by
Bernd Schubert
parent
5e3f016bef
commit
137e6dc718
@@ -932,6 +932,7 @@ int fuse_uring_stop(struct fuse_session *se)
|
||||
return 0;
|
||||
|
||||
fuse_session_destruct_uring(ring);
|
||||
se->uring.pool = NULL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user