[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] net: avoid segfault in case netdev_del non-host
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH] net: avoid segfault in case netdev_del non-host network device |
Date: |
Thu, 1 Nov 2012 10:42:00 +0100 |
On Thu, Nov 1, 2012 at 8:48 AM, Lei Li <address@hidden> wrote:
> netdev_del assume that remove host network device.
> However, when try to remove a non-host network device
> by netdev_del, it will cause a segfault.
I recently sent a similar fix which forbids deleting non-netdev net
clients from netdev_del:
http://patchwork.ozlabs.org/patch/193759/
netdev_del should only be used on -netdev/netdev_add devices.
Therefore my patch raises an error before we call
qemu_del_net_client(nc).
Stefan