* Forgot to set the BaseDevice inode ID; devfs_unpublish_device() now works

as intended.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27037 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-08-18 12:34:47 +00:00
parent 0d37df6412
commit 8ec35e364a
@@ -707,6 +707,7 @@ publish_device(struct devfs* fs, const char* path, BaseDevice* device)
// all went fine, let's initialize the node
node->stream.type = S_IFCHR | 0644;
node->stream.u.dev.device = device;
device->SetID(node->id);
// the node is now fully valid and we may insert it into the dir
publish_node(fs, dirNode, node);