chardev: check if the chardev is registered for yanking
commitebae6477dc43cf32b91564e07a776d9bff3b052f
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 4 Feb 2021 10:52:31 +0000 (4 14:52 +0400)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 4 Feb 2021 14:58:54 +0000 (4 15:58 +0100)
tree51f2cda12d0587ace52ed5a29c0ebf427007f869
parent3cddb8b9e0b58eea04e6eb908fc6a12d5af3d3cb
chardev: check if the chardev is registered for yanking

Not all chardevs are created via qmp_chardev_open_socket(), and those
should not call the yank function registration, as this will eventually
assert() not being registered.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20210204105232.834642-20-marcandre.lureau@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
chardev/char-socket.c