Kernel: Propagate Vector append failures from Inode::apply_flock()
This commit is contained in:
parent
d106f20a73
commit
b285323d91
Notes:
sideshowbarker
2024-07-18 01:00:51 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b285323d918
1 changed files with 1 additions and 1 deletions
|
@ -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 {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue