diff options
| author | Abdelkader Boudih <seuros@FreeBSD.org> | 2026-11-02 20:09:55 +0000 |
|---|---|---|
| committer | Abdelkader Boudih <seuros@FreeBSD.org> | 2026-11-02 20:09:55 +0000 |
| commit | b3b50cbd4647bb095e0cb5b72e933bc3036e412d (patch) | |
| tree | 905ec976eb8b094b8f88f04629d7cf0fa9b7ca15 /sys/modules/mmc/(developers-only) | |
| parent | 6c177745c58e526bcf7451ad2765df6c63f35f97 (diff) | |
Prior to this change, `jail_get` when called with `JAIL_USE|JAIL_GET_DESC`
would fail to return a valid descriptor in the positive case because the
`JAIL_USE_DESC` block jumped to `found_prison` before the descriptor was
allocated. This resulted in the returned jail descriptor always being -1,
despite the call being successful.
This change fixes the logic so `jfd_out` is properly initialized in the
aforementioned scenario.
MFC after: 3 days
Reviewed by: jamie, ngie, adrian
Differential Revision: https://reviews.freebsd.org/D60984
Diffstat (limited to 'sys/modules/mmc/(developers-only)')
0 files changed, 0 insertions, 0 deletions
