qemu-e2k/net
Eduardo Otubo aa1530dec4 filter-mirror: segfault when specifying non existent device
When using filter-mirror like the example below where the interface
'ndev0' does not exist on the host, QEMU crashes into segmentation
fault.

 $ qemu-system-x86_64 -S -machine pc -netdev user,id=ndev0 -object filter-mirror,id=test-object,netdev=ndev0

This happens because the function filter_mirror_setup() does not check
if the device actually exists and still keep on processing calling
qemu_chr_find(). This patch fixes this issue.

Signed-off-by: Eduardo Otubo <otubo@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2017-10-16 23:16:06 +03:00
..
checksum.c
clients.h
colo-compare.c
colo.c
colo.h
dump.c
eth.c
filter-buffer.c
filter-mirror.c filter-mirror: segfault when specifying non existent device 2017-10-16 23:16:06 +03:00
filter-replay.c
filter-rewriter.c
filter.c
hub.c
hub.h
l2tpv3.c
Makefile.objs
net.c
netmap.c
queue.c
slirp.c
socket.c
tap_int.h
tap-bsd.c
tap-linux.c
tap-linux.h
tap-solaris.c
tap-stub.c
tap-win32.c
tap.c
trace-events
util.c
util.h
vde.c
vhost-user.c