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
..
2017-01-20 10:36:38 +08:00
2017-09-19 14:09:34 +02:00
2016-07-19 20:18:02 +02:00
2017-09-19 14:09:34 +02:00
2016-07-19 20:18:02 +02:00
2016-02-04 17:41:30 +00:00
2016-10-26 09:57:59 +08:00
2017-01-20 14:56:40 +00:00
2016-02-04 17:41:30 +00:00
2016-02-23 12:43:05 +00:00
2016-07-19 20:18:02 +02:00