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:
parent
590c0d667c
commit
2ec83efbb2
@ -311,7 +311,7 @@ republish_driver(legacy_driver* driver)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
TRACE(("devfs: unpublishing no more present \"%s\"\n", entry->path));
|
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) {
|
if (device != NULL) {
|
||||||
driver->devices.Remove(device);
|
driver->devices.Remove(device);
|
||||||
delete device;
|
delete device;
|
||||||
|
Loading…
Reference in New Issue
Block a user