1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:48:12 +00:00

Ext2FS: Take the inode lock in Ext2FSInode::metadata()

Remove an unnecessary InterruptDisabler to make this not assert. :^)
This commit is contained in:
Andreas Kling 2020-01-03 17:47:31 +01:00
parent aba7829724
commit 82760998a9
2 changed files with 1 additions and 2 deletions

View file

@ -35,7 +35,6 @@ KResultOr<Region*> InodeFile::mmap(Process& process, FileDescription& descriptio
{
ASSERT(offset == 0);
// FIXME: If PROT_EXEC, check that the underlying file system isn't mounted noexec.
InterruptDisabler disabler;
auto* region = process.allocate_file_backed_region(preferred_vaddr, size, inode(), description.absolute_path(), prot);
if (!region)
return KResult(-ENOMEM);