qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PULL v2 5/7] aio: Introduce aio-epoll.c


From: Fam Zheng
Subject: Re: [Qemu-devel] [PULL v2 5/7] aio: Introduce aio-epoll.c
Date: Mon, 16 Nov 2015 14:25:50 +0800
User-agent: Mutt/1.5.21 (2010-09-15)

On Fri, 11/13 18:09, Paolo Bonzini wrote:
> > +static void aio_epoll_update(AioContext *ctx, AioHandler *node, bool 
> > is_new)
> > +{
> > +    struct epoll_event event;
> > +    int r;
> > +
> > +    if (!ctx->epoll_enabled) {
> > +        return;
> > +    }
> > +    if (!node->pfd.events) {
> 
> Coverity says that node might have been freed by the time you call
> aio_epoll_update.  You need to pass node->pfd.fd and node->pfd.events by
> value instead, I think, or move the call earlier in aio_set_fd_handler.
> 

Yes, I'll send a patch.

Fam



reply via email to

[Prev in Thread] Current Thread [Next in Thread]