ceph: fix use-after-free bug in ceph_direct_read_write()
authorYan, Zheng <zyan@redhat.com>
Tue, 14 Jun 2016 03:13:59 +0000 (11:13 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 28 Jul 2016 00:55:39 +0000 (02:55 +0200)
commitfc8c3892f30c39f28fdb835f7c8598ac4cf5ed1e
treea99fe1abf02679d53681bd244fa540445f871a3e
parent774a6a118c70f8c11fcfe636032b5016ad71a746
ceph: fix use-after-free bug in ceph_direct_read_write()

ceph_aio_complete() can free the ceph_aio_request struct before
the code exits the while loop.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/file.c