forked from Bananymous/banan-os
Kernel: Remove storage devices after unplugging them
This commit is contained in:
@@ -20,7 +20,11 @@ namespace Kernel
|
||||
{ }
|
||||
|
||||
USBMassStorageDriver::~USBMassStorageDriver()
|
||||
{ }
|
||||
{
|
||||
for (auto& device : m_storage_devices)
|
||||
if (device)
|
||||
DevFileSystem::get().remove_device(device);
|
||||
}
|
||||
|
||||
BAN::ErrorOr<void> USBMassStorageDriver::initialize()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user