diff options
| author | Wander Lairson Costa <wander@redhat.com> | 2026-03-09 16:46:22 -0300 |
|---|---|---|
| committer | Tomas Glozar <tglozar@redhat.com> | 2026-03-11 15:29:50 +0100 |
| commit | d847188bb92b14518a04d7542e44928a22060847 (patch) | |
| tree | 52a60fd57d7c6cc3455992d97e9f6ff3fa03033c /rust/kernel/interop/git@git.tavy.me:linux-stable.git | |
| parent | d6515424e80583928ec1c55e9dd4e906bc90d9be (diff) | |
rtla: Handle pthread_create() failure properly
Add proper error handling when pthread_create() fails to create the
timerlat user-space dispatcher thread. Previously, the code only logged
an error message but continued execution, which could lead to undefined
behavior when the tool later expects the thread to be running.
When pthread_create() returns an error, the function now jumps to the
out_trace error path to properly clean up resources and exit. This
ensures consistent error handling and prevents the tool from running
in an invalid state without the required user-space thread.
Signed-off-by: Wander Lairson Costa <wander@redhat.com>
Link: https://lore.kernel.org/r/20260309195040.1019085-10-wander@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
Diffstat (limited to 'rust/kernel/interop/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions
