mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
Kernel: Propagate Vector append failures from Inode::apply_flock()
This commit is contained in:
parent
d106f20a73
commit
b285323d91
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