aio: nullify aio->ring_pages after freeing it
authorSasha Levin <sasha.levin@oracle.com>
Tue, 19 Nov 2013 22:33:03 +0000 (17:33 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Dec 2013 15:29:17 +0000 (07:29 -0800)
commitefbac2ca2f13d43a9aab37b84a3cca4d73b09c7c
treee7e017ecd4c7c1d5f1185071a66670a4347410a1
parentf50db974cb75e31d98b176c3c9ea92e57aa97a1b
aio: nullify aio->ring_pages after freeing it

commit ddb8c45ba15149ebd41d7586261c05f7ca37f9a1 upstream.

After freeing ring_pages we leave it as is causing a dangling pointer. This
has already caused an issue so to help catching any issues in the future
NULL it out.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/aio.c