We should not forget to stop the etherq (was not sure if the stack does
it for us, but seems that we had a lock/memory-leak, here). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14411 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -988,6 +988,8 @@ static int ether_init(void *cpp)
|
|||||||
static int ether_stop()
|
static int ether_stop()
|
||||||
{
|
{
|
||||||
struct ether_device *dptr = ether_devices, *odev;
|
struct ether_device *dptr = ether_devices, *odev;
|
||||||
|
stop_ifq(etherq);
|
||||||
|
etherq = NULL;
|
||||||
kill_thread(ether_rxt);
|
kill_thread(ether_rxt);
|
||||||
|
|
||||||
while (dptr) {
|
while (dptr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user