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
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.6 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 271.4 KB
Makefile -rw-r--r-- 50.5 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top