Skip to content

[lib][fs] Fix cleanup on handle allocation failure#503

Closed
bl4ckhyun wants to merge 2 commits into
littlekernel:masterfrom
bl4ckhyun:fs_bug
Closed

[lib][fs] Fix cleanup on handle allocation failure#503
bl4ckhyun wants to merge 2 commits into
littlekernel:masterfrom
bl4ckhyun:fs_bug

Conversation

@bl4ckhyun
Copy link
Copy Markdown
Contributor

When fs_open_file(), fs_create_file(), or fs_open_dir() fail to allocate
their wrapper handle objects, they should release the already-opened file or
directory cookie before dropping the mount reference.

Also return ERR_NO_MEMORY from fs_create_file() on allocation failure.

@travisg
Copy link
Copy Markdown
Member

travisg commented Apr 14, 2026

this got picked up with the later PR.

@travisg travisg closed this Apr 14, 2026
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.

2 participants