diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2016-07-27 01:15:08 +0400 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-07-29 00:33:47 +0300 |
commit | 5c7eaabf65ba936f718ef4dfcfc551ffc9d4f35c (patch) | |
tree | d7dfff9fa9ba04abb1e2fce99ee754a3688556c2 /audio | |
parent | 4afba631206d302303499edc22a8f3fc7a1816ee (diff) | |
download | qemu-5c7eaabf65ba936f718ef4dfcfc551ffc9d4f35c.tar.gz qemu-5c7eaabf65ba936f718ef4dfcfc551ffc9d4f35c.tar.bz2 qemu-5c7eaabf65ba936f718ef4dfcfc551ffc9d4f35c.zip |
qemu-char: fix qemu_chr_fe_set_msgfds() crash when disconnected
Calling qemu_chr_fe_set_msgfds() on unconnected socket leads to crash
since s->ioc is NULL in this case. Return an error earlier instead.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'audio')
0 files changed, 0 insertions, 0 deletions