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.1 KB
Makefile -rw-r--r-- 308 bytes
acl.c -rw-r--r-- 4.4 KB
addr.c -rw-r--r-- 35.8 KB
cache.c -rw-r--r-- 9.5 KB
cache.h -rw-r--r-- 4.6 KB
caps.c -rw-r--r-- 90.3 KB
ceph_frag.c -rw-r--r-- 365 bytes
debugfs.c -rw-r--r-- 6.5 KB
dir.c -rw-r--r-- 35.7 KB
export.c -rw-r--r-- 5.8 KB
file.c -rw-r--r-- 33.6 KB
inode.c -rw-r--r-- 52.7 KB
ioctl.c -rw-r--r-- 7.4 KB
ioctl.h -rw-r--r-- 3.6 KB
locks.c -rw-r--r-- 8.7 KB
mds_client.c -rw-r--r-- 92.8 KB
mds_client.h -rw-r--r-- 12.0 KB
mdsmap.c -rw-r--r-- 4.5 KB
snap.c -rw-r--r-- 25.8 KB
strings.c -rw-r--r-- 4.0 KB
super.c -rw-r--r-- 25.3 KB
super.h -rw-r--r-- 27.2 KB
xattr.c -rw-r--r-- 27.7 KB

back to top