Fix one reason for crashing on legacy driver rescans, but there seems to be

more to it.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25724 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2008-05-30 17:45:27 +00:00
parent 590c0d667c
commit 2ec83efbb2

View File

@ -311,7 +311,7 @@ republish_driver(legacy_driver* driver)
break;
TRACE(("devfs: unpublishing no more present \"%s\"\n", entry->path));
LegacyDevice* device = get_device_for_path(driver, devicePaths[0]);
LegacyDevice* device = get_device_for_path(driver, entry->path);
if (device != NULL) {
driver->devices.Remove(device);
delete device;