Skip to content

[kernel] Fix extraneous iput in sys_link#2244

Merged
ghaerr merged 1 commit intomasterfrom
syslink
Feb 27, 2025
Merged

[kernel] Fix extraneous iput in sys_link#2244
ghaerr merged 1 commit intomasterfrom
syslink

Conversation

@ghaerr
Copy link
Copy Markdown
Owner

@ghaerr ghaerr commented Feb 27, 2025

Final fix for #2242 mv bug inside sys_link - iput should not be called twice in the case when minix_link is called to link a directory (as part of a directory rename operation from sys_rename calling sys_link), where minix_link already iput the original inode and returns -EPERM.

Fixed code sourced from TLVC Mellvik/TLVC#142 discussed in Mellvik/TLVC#141.

@ghaerr ghaerr merged commit 2cfa1ce into master Feb 27, 2025
@ghaerr ghaerr deleted the syslink branch February 27, 2025 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant