@@ -119,13 +119,14 @@ ramfs_unmount(fs_volume* _volume)
|
|||||||
{
|
{
|
||||||
FUNCTION_START();
|
FUNCTION_START();
|
||||||
Volume* volume = (Volume*)_volume->private_volume;
|
Volume* volume = (Volume*)_volume->private_volume;
|
||||||
|
status_t error = B_OK;
|
||||||
status_t error = volume->Unmount();
|
if (VolumeWriteLocker locker = volume) {
|
||||||
if (error == B_OK)
|
error = volume->Unmount();
|
||||||
delete volume;
|
if (error == B_OK)
|
||||||
if (error != B_OK)
|
delete volume;
|
||||||
REPORT_ERROR(error);
|
} else
|
||||||
return error;
|
SET_ERROR(error, B_ERROR);
|
||||||
|
RETURN_ERROR(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user