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)
committerBenjamin LaHaise <bcrl@kvack.org>
Fri, 6 Dec 2013 15:22:55 +0000 (10:22 -0500)
commitd1b9432712a25eeb06114fb4b587133525a47de5
tree6bf2e051cdb49ca640340caf3f14b30a5a3a38ab
parentddb8c45ba15149ebd41d7586261c05f7ca37f9a1
aio: clean up aio ring in the fail path

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>
fs/aio.c