iohandlers: fix issue with qemu_set_fd_handler()
commitc82dc29a9112f34e0a51cad9a412cf6d9d05dfb2
authorAnthony Liguori <aliguori@us.ibm.com>
Wed, 7 Sep 2011 18:44:45 +0000 (7 13:44 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 8 Sep 2011 13:06:08 +0000 (8 08:06 -0500)
treeb6498e6e1102256b88abbf9ee3e77cc2d28abdfa
parent344eecf6995f4a0ad1d887cec922f6806f91a3f8
iohandlers: fix issue with qemu_set_fd_handler()

As spotted by Aneesh, some users pass a NULL opaque so we need to be more
aggressive in checking whether a user means to unregister.

Also fix a double free caused by tag not being reset to zero after delete.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
iohandler.c