https://github.com/torvalds/linux
Revision 754320d6e166d3a12cb4810a452bde00afbd4e9a authored by Leon Yu on 01 May 2014, 03:31:28 UTC, committed by Benjamin LaHaise on 01 May 2014, 12:37:43 UTC
iovec should be reclaimed whenever caller of rw_copy_check_uvector() returns,
but it doesn't hold when failure happens right after aio_setup_vectored_rw().

Fix that in a such way to avoid hairy goto.

Signed-off-by: Leon Yu <chianglungyu@gmail.com>
Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Cc: stable@vger.kernel.org
1 parent e02ba72
History
Tip revision: 754320d6e166d3a12cb4810a452bde00afbd4e9a authored by Leon Yu on 01 May 2014, 03:31:28 UTC
aio: fix potential leak in aio_run_iocb().
Tip revision: 754320d
File Mode Size
Kconfig -rw-r--r-- 1.7 KB
Makefile -rw-r--r-- 195 bytes
balloc.c -rw-r--r-- 5.7 KB
dir.c -rw-r--r-- 8.5 KB
file.c -rw-r--r-- 1.3 KB
ialloc.c -rw-r--r-- 5.8 KB
inode.c -rw-r--r-- 9.5 KB
itree.c -rw-r--r-- 11.5 KB
namei.c -rw-r--r-- 5.8 KB
super.c -rw-r--r-- 15.1 KB
symlink.c -rw-r--r-- 487 bytes
sysv.h -rw-r--r-- 7.8 KB

back to top