qemu-e2k/net
zhanghailiang e0a039e50d filter-buffer: fix segfault when starting qemu with status=off property
After commit 338d3f, we support 'status' property for filter object.
The segfault can be triggered by starting qemu with 'status=off' property
for filter, when the s->incoming_queue is NULL, we reference it directly
in qemu_net_queue_flush() which was called in status_changed() callback
function.

We shouldn't trigger status_changed() before the filter was initialized,
We can check the value of 'nf->netdev' to confirm if the filter is
initialized or not, so let's check its value before calling
status_changed().

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2016-04-06 09:52:07 +08:00
..
checksum.c
clients.h
dump.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
eth.c
filter-buffer.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
filter-mirror.c net/filter-mirror: implement filter-redirector 2016-03-30 08:57:28 +08:00
filter.c filter-buffer: fix segfault when starting qemu with status=off property 2016-04-06 09:52:07 +08:00
hub.c
hub.h
l2tpv3.c
Makefile.objs net/filter-mirror:Add filter-mirror 2016-03-30 08:54:29 +08:00
net.c net: fix OptsVisitor memory leak 2016-04-06 09:52:07 +08:00
netmap.c net: fix missing include of qapi/error.h in netmap.c 2016-04-04 15:01:14 +01:00
queue.c
slirp.c slirp: Allow disabling IPv4 or IPv6 2016-04-01 17:51:55 +02:00
socket.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
tap_int.h
tap-aix.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
tap-bsd.c util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00
tap-haiku.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
tap-linux.c util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00
tap-linux.h
tap-solaris.c util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00
tap-win32.c
tap.c util: move declarations out of qemu-common.h 2016-03-22 22:20:17 +01:00
util.c
util.h
vde.c
vhost-user.c