diff options
author | Andreas Kling <kling@serenityos.org> | 2021-11-18 13:33:09 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-18 21:11:30 +0100 |
commit | b285323d91819f67677552701bb4b853859267bd (patch) | |
tree | e04d8b0c305e56ee0b7934a620213ea9a7e8ca85 /Kernel/FileSystem | |
parent | d106f20a7325860d5fa95f607aae1f28ed8fa588 (diff) | |
download | serenity-b285323d91819f67677552701bb4b853859267bd.zip |
Kernel: Propagate Vector append failures from Inode::apply_flock()
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r-- | Kernel/FileSystem/Inode.cpp | 2 |
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 {}; } |