mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +00:00
Kernel: Propagate a few KResults properly in FileSystem subsystems
Propagating un-obsevered KResults up the stack.
This commit is contained in:
committed by
Andreas Kling
parent
c4c6d9367d
commit
d67069d922
@@ -1023,7 +1023,9 @@ KResult Ext2FSInode::remove_child(const StringView& name)
|
||||
m_lookup_cache.remove(name);
|
||||
|
||||
auto child_inode = fs().get_inode(child_id);
|
||||
child_inode->decrement_link_count();
|
||||
result = child_inode->decrement_link_count();
|
||||
if (result.is_error())
|
||||
return result;
|
||||
|
||||
did_remove_child(name);
|
||||
return KSuccess;
|
||||
|
||||
Reference in New Issue
Block a user