kernel: release descriptors when rejecting read-only truncation #504

Manually merged
github merged 1 commit from gh-pr/504/head into gh-pr/504/base 2026-11-26 09:24:11 +00:00
Owner

@⁠Mininaut on GitHub · 2026-09-07 14:31 UTC · original
Mininaut:fix/kernel-open-rejected-descriptor → main · +1 −0 · 1 files · 1 commits · merged 2026-09-12 13:44 UTC

Release the descriptor allocated by KernelOpen before returning KERNEL_ERROR_EACCES for read-only truncation. Repeated rejected opens otherwise retain guest descriptor slots and their allocations until filesystem shutdown.

The patch contains only the missing DeleteDescriptor call. No test files or test-target changes are included.

Validation: checked descriptor allocation/cleanup and the neighboring failure paths; git diff --check passes. No build or runtime tests were run for this revision.

**@⁠Mininaut** on GitHub · 2026-09-07 14:31 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/504) `Mininaut:fix/kernel-open-rejected-descriptor` → `main` · +1 −0 · 1 files · 1 commits · merged 2026-09-12 13:44 UTC Release the descriptor allocated by `KernelOpen` before returning `KERNEL_ERROR_EACCES` for read-only truncation. Repeated rejected opens otherwise retain guest descriptor slots and their allocations until filesystem shutdown. The patch contains only the missing `DeleteDescriptor` call. No test files or test-target changes are included. Validation: checked descriptor allocation/cleanup and the neighboring failure paths; `git diff --check` passes. No build or runtime tests were run for this revision.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:24:09 +00:00
github manually merged commit b4895e8e17 into gh-pr/504/base 2026-11-26 09:24:11 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.