a bit more work towards proper locking including a fix to a refcount bug

- fixed a issue in add_interface_to_domain where the device interface's refcount was always incremented since that function was getting the device interface handle and not returning it unconditionlly
 - if the ethernet device goes down, and the fd is close()ed, return B_FILE_ERROR instead of calling into the driver again


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20601 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Hugo Santos
2007-04-06 09:48:02 +00:00
parent c64fecca78
commit 20b534cd5f
4 changed files with 40 additions and 37 deletions
@@ -652,7 +652,6 @@ device_removed(net_device *device)
// TODO: make sure all readers are gone
// make sure all watchers are gone
// remove device interface
return B_OK;
}