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-- 272 bytes
compress.c -rw-r--r-- 10.1 KB
dir.c -rw-r--r-- 6.5 KB
export.c -rw-r--r-- 5.1 KB
inode.c -rw-r--r-- 39.3 KB
isofs.h -rw-r--r-- 6.0 KB
joliet.c -rw-r--r-- 1.3 KB
namei.c -rw-r--r-- 4.2 KB
rock.c -rw-r--r-- 17.5 KB
rock.h -rw-r--r-- 2.3 KB
util.c -rw-r--r-- 2.4 KB
zisofs.h -rw-r--r-- 807 bytes

back to top