quorum: Fix crash in quorum_aio_cb()
commitb9c600d20716b3d942cb07188ff998fb236a8365
authorAlberto Garcia <berto@igalia.com>
Thu, 10 Mar 2016 11:55:24 +0000 (10 13:55 +0200)
committerMax Reitz <mreitz@redhat.com>
Mon, 14 Mar 2016 16:35:06 +0000 (14 17:35 +0100)
treecdf94501b33b3d0f85d6135c447260f7bd9c5882
parente3f66e03680ec2a1f43393d551bc83c5d469f84b
quorum: Fix crash in quorum_aio_cb()

quorum_aio_cb() emits the QUORUM_REPORT_BAD event if there's
an I/O error in a Quorum child. However sacb->aiocb must be
correctly initialized for this to happen. read_quorum_children() and
read_fifo_child() are not doing this, which results in a QEMU crash.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 8138570d071ba7e25db3736979234a1fd71dbd05.1457610443.git.berto@igalia.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
block/quorum.c