Re: [Qemu-devel] [PATCH] nbd: Fix uninitialised use of s->sock

2012-04-26 Thread Paolo Bonzini
Il 26/04/2012 13:45, Kevin Wolf ha scritto: > s->sock is assigned only afterwards, so we're really registering an > aio_fd_handler for file descriptor 0 here. Not exactly what we intended. > > Signed-off-by: Kevin Wolf > --- > block/nbd.c |2 +- > 1 files changed, 1 insertions(+), 1 deletion

[Qemu-devel] [PATCH] nbd: Fix uninitialised use of s->sock

2012-04-26 Thread Kevin Wolf
s->sock is assigned only afterwards, so we're really registering an aio_fd_handler for file descriptor 0 here. Not exactly what we intended. Signed-off-by: Kevin Wolf --- block/nbd.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/nbd.c b/block/nbd.c index 56dbf6e