qemu/net
Jason Wang 5dd2d45e34 net: filter: correctly remove filter from the list during finalization
Qemu may crash when we want to add two filters on the same netdev but
the initialization of second fails (e.g missing parameters):

./qemu-system-x86_64 -netdev user,id=un0 \
 -object filter-buffer,id=f0,netdev=un0,interval=10 \
 -object filter-buffer,id=f1,netdev=un0
Segmentation fault (core dumped)

This is because we don't check whether or not the filter was in the
list of netdev. This patch fixes this.

Cc: Yang Hongyang <hongyang.yang@easystack.cn>
Reviewed-by: Yang Hongyang <hongyang.yang@easystack.cn>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2016-03-08 15:34:09 +08:00
..
checksum.c net: Clean up includes 2016-02-04 17:41:30 +00:00
clients.h net: Permit incremental conversion of init functions to Error 2015-05-27 09:51:04 +01:00
dump.c qom: Swap 'name' next to visitor in ObjectPropertyAccessor 2016-02-08 17:29:56 +01:00
eth.c net: Clean up includes 2016-02-04 17:41:30 +00:00
filter-buffer.c qom: Swap 'name' next to visitor in ObjectPropertyAccessor 2016-02-08 17:29:56 +01:00
filter.c net: filter: correctly remove filter from the list during finalization 2016-03-08 15:34:09 +08:00
hub.c net: Clean up includes 2016-02-04 17:41:30 +00:00
hub.h net: fix qemu_flush_queued_packets() in presence of a hub 2013-02-27 16:10:23 +01:00
l2tpv3.c net: Clean up includes 2016-02-04 17:41:30 +00:00
Makefile.objs netfilter: add a netbuffer filter 2015-10-12 13:31:28 +08:00
net.c qapi-dealloc: Reduce use outside of generated code 2016-03-04 17:16:32 +01:00
netmap.c net: Clean up includes 2016-02-04 17:41:30 +00:00
queue.c net: Clean up includes 2016-02-04 17:41:30 +00:00
slirp.c net: Clean up includes 2016-02-04 17:41:30 +00:00
socket.c net: Clean up includes 2016-02-04 17:41:30 +00:00
tap_int.h tap: add VNET_LE/VNET_BE operations 2015-06-17 17:12:54 +02:00
tap-aix.c net: Clean up includes 2016-02-04 17:41:30 +00:00
tap-bsd.c net: Clean up includes 2016-02-04 17:41:30 +00:00
tap-haiku.c net: Clean up includes 2016-02-04 17:41:30 +00:00
tap-linux.c net: Clean up includes 2016-02-04 17:41:30 +00:00
tap-linux.h all: Clean up includes 2016-02-23 12:43:05 +00:00
tap-solaris.c net: Clean up includes 2016-02-04 17:41:30 +00:00
tap-win32.c net: Clean up includes 2016-02-04 17:41:30 +00:00
tap.c net: Clean up includes 2016-02-04 17:41:30 +00:00
util.c net: Clean up includes 2016-02-04 17:41:30 +00:00
util.h all: Clean up includes 2016-02-23 12:43:05 +00:00
vde.c net: Clean up includes 2016-02-04 17:41:30 +00:00
vhost-user.c net: Clean up includes 2016-02-04 17:41:30 +00:00