summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-11-18 13:33:09 +0100
committerAndreas Kling <kling@serenityos.org>2021-11-18 21:11:30 +0100
commitb285323d91819f67677552701bb4b853859267bd (patch)
treee04d8b0c305e56ee0b7934a620213ea9a7e8ca85 /Kernel/FileSystem
parentd106f20a7325860d5fa95f607aae1f28ed8fa588 (diff)
downloadserenity-b285323d91819f67677552701bb4b853859267bd.zip
Kernel: Propagate Vector append failures from Inode::apply_flock()
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r--Kernel/FileSystem/Inode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/Inode.cpp b/Kernel/FileSystem/Inode.cpp
index 78a3d7db6b..cd1a0f5abb 100644
--- a/Kernel/FileSystem/Inode.cpp
+++ b/Kernel/FileSystem/Inode.cpp
@@ -336,7 +336,7 @@ ErrorOr<void> Inode::apply_flock(Process const& process, OpenFileDescription con
return EINVAL;
}
- m_flocks.append(Flock { new_lock.l_start, new_lock.l_len, &description, process.pid().value(), new_lock.l_type });
+ TRY(m_flocks.try_append(Flock { new_lock.l_start, new_lock.l_len, &description, process.pid().value(), new_lock.l_type }));
return {};
}