From: Leon Yu Date: Thu, 1 May 2014 03:31:28 +0000 (+0000) Subject: aio: fix potential leak in aio_run_iocb(). X-Git-Tag: omap-for-v3.16/pm-signed~30^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=754320d6e166d3a12cb4810a452bde00afbd4e9a;p=pandora-kernel.git aio: fix potential leak in aio_run_iocb(). 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 Signed-off-by: Benjamin LaHaise Cc: stable@vger.kernel.org --- Reading git-diff-tree failed