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
..
2016-03-08 15:34:18 +08:00
2016-02-04 17:41:30 +00:00
2016-04-06 09:52:07 +08:00
2016-02-04 17:41:30 +00:00
2016-04-01 17:51:55 +02:00
2016-02-23 12:43:05 +00:00
2016-02-04 17:41:30 +00:00
2016-02-23 12:43:05 +00:00