X-Git-Url: http://git.maemo.org/git/?p=qemu;a=blobdiff_plain;f=aio.c;fp=aio.c;h=11fbb6c0c536a254485c783137254645b9a0edc8;hp=200320c979425bb25b8a3f0cc4aa6c33299f0ad3;hb=a03c3bde4e288e790eccfb8cd45abd8ecbf467dc;hpb=e2ffa1bf065fa199f27d661d495573e9d6059bf1 diff --git a/aio.c b/aio.c index 200320c..11fbb6c 100644 --- a/aio.c +++ b/aio.c @@ -44,7 +44,8 @@ static AioHandler *find_aio_handler(int fd) LIST_FOREACH(node, &aio_handlers, node) { if (node->fd == fd) - return node; + if (!node->deleted) + return node; } return NULL;