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

Kernel: InodeVMObject can't call Inode::size() with interrupts disabled

Inode::size() may try to take a lock, so we can't be calling it with
interrupts disabled.

This fixes a kernel hang when trying to execute a binary in a TmpFS.
This commit is contained in:
Andreas Kling 2020-01-03 15:40:03 +01:00
parent 1dc64ec064
commit aba7829724
2 changed files with 5 additions and 4 deletions

View file

@ -22,7 +22,7 @@ public:
int release_all_clean_pages();
private:
explicit InodeVMObject(Inode&);
explicit InodeVMObject(Inode&, size_t);
explicit InodeVMObject(const InodeVMObject&);
InodeVMObject& operator=(const InodeVMObject&) = delete;