<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
From: OGAWA Hirofumi &lt;hirofumi@mail.parknet.co.jp&gt;

ioctx_alloc() leaks an mm-&gt;mm_count ref on an error path.



 fs/aio.c |    1 +
 1 files changed, 1 insertion(+)

diff -puN fs/aio.c~aio-mm-leak-fix fs/aio.c
--- 25/fs/aio.c~aio-mm-leak-fix	2003-08-18 22:27:17.000000000 -0700
+++ 25-akpm/fs/aio.c	2003-08-18 22:27:17.000000000 -0700
@@ -258,6 +258,7 @@ out_cleanup:
 	return ERR_PTR(-EAGAIN);
 
 out_freectx:
+	mmdrop(mm);
 	kmem_cache_free(kioctx_cachep, ctx);
 	ctx = ERR_PTR(-ENOMEM);
 

_
</pre></body></html>