aboutsummaryrefslogtreecommitdiff
path: root/qmp.c
diff options
context:
space:
mode:
authorLiu Yuan <namei.unix@gmail.com>2014-09-11 13:41:21 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2014-09-22 11:39:12 +0100
commit997dd8df3e95b2fdbd1f30b3deefaad4e9efd14a (patch)
tree1efa7e763cae64478340b9f40ba1b965fd680734 /qmp.c
parent533ffb17a5b023fe531477732b71d97267012863 (diff)
quorum: fix quorum_aio_cancel()
For a fifo read pattern, we only have one running aio (possible other cases that has less number than num_children in the future), so we need to check if .acb is NULL against bdrv_aio_cancel() to avoid segfault. Cc: Eric Blake <eblake@redhat.com> Cc: Benoit Canet <benoit@irqsave.net> Cc: Kevin Wolf <kwolf@redhat.com> Cc: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Liu Yuan <namei.unix@gmail.com> Signed-off-by: Fam Zheng <famz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qmp.c')
0 files changed, 0 insertions, 0 deletions