On 11.04.2017 16:08, Kevin Wolf wrote: > This fixes a regression introduced in commit 9d456654. > > aio_co_wake() can only be used to reenter a coroutine that was already > previously entered, otherwise co->ctx is uninitialised and we access > garbage. Using it immediately after qemu_coroutine_create() like in > co_read_response() is wrong and causes segfaults. > > Replace the call with aio_co_enter(), which gets an explicit AioContext > parameter and works even for new coroutines. > > Signed-off-by: Kevin Wolf <kw...@redhat.com> > Tested-by: Kashyap Chamarthy <kcham...@redhat.com> > --- > block/sheepdog.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Max Reitz <mre...@redhat.com>
signature.asc
Description: OpenPGP digital signature