aio: clean up aio ring in the fail path
authorGu Zheng <guz.fnst@cn.fujitsu.com>
Wed, 4 Dec 2013 10:19:06 +0000 (18:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Dec 2013 15:29:17 +0000 (07:29 -0800)
commitf47be34aa63fbea1a3857f9e8be5619bded8e5cf
tree7a95faf316991896d31b39495d47be0ac2ce8aa4
parentefbac2ca2f13d43a9aab37b84a3cca4d73b09c7c
aio: clean up aio ring in the fail path

commit d1b9432712a25eeb06114fb4b587133525a47de5 upstream.

Clean up the aio ring file in the fail path of aio_setup_ring
and ioctx_alloc. And maybe it can fix the GPF issue reported by
Dave Jones:
https://lkml.org/lkml/2013/11/25/898

Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/aio.c