aio-posix: avoid NULL pointer dereference in aio_epoll_update
commit36173ec5f1d3baee62504affd761199693c14c82
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Nov 2016 13:55:23 +0000 (8 14:55 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 8 Nov 2016 17:09:14 +0000 (8 17:09 +0000)
treec2fea85821064f805d81aaaae8bb43764b4dd3f9
parente6af1e085416378918cca357bf2abd8b90224667
aio-posix: avoid NULL pointer dereference in aio_epoll_update

aio_epoll_update dereferences parameter "node", but it could have been NULL
if deleting an fd handler that was not registered in the first place.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-id: 20161108135524.25927-2-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
aio-posix.c