From: Sasha Levin Date: Tue, 19 Nov 2013 22:33:02 +0000 (-0500) Subject: aio: prevent double free in ioctx_alloc X-Git-Tag: v3.13-rc1~10^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d558023207e008a4476a3b7bb8706b2a2bf5d84f;p=pandora-kernel.git aio: prevent double free in ioctx_alloc ioctx_alloc() calls aio_setup_ring() to allocate a ring. If aio_setup_ring() fails to do so it would call aio_free_ring() before returning, but ioctx_alloc() would call aio_free_ring() again causing a double free of the ring. This is easily reproducible from userspace. Signed-off-by: Sasha Levin Signed-off-by: Benjamin LaHaise --- Reading git-diff-tree failed