diff options
author | Ilpo Järvinen <[email protected]> | 2023-10-02 12:48:07 +0300 |
---|---|---|
committer | Shuah Khan <[email protected]> | 2023-10-13 14:54:04 -0600 |
commit | beb7f471847663559bd0fe60af1d70e05a1d7c6c (patch) | |
tree | e4e5b3832992210e336ae9c61febbc1f552a4ff1 /net/lapb/lapb_timer.c | |
parent | f23c7925e98a1f0d9e3ee93a856dfe3d1288a3f0 (diff) |
selftests/resctrl: Fix uninitialized .sa_flags
signal_handler_unregister() calls sigaction() with uninitializing
sa_flags in the struct sigaction.
Make sure sa_flags is always initialized in signal_handler_unregister()
by initializing the struct sigaction when declaring it. Also add the
initialization to signal_handler_register() even if there are no know
bugs in there because correctness is then obvious from the code itself.
Fixes: 73c55fa5ab55 ("selftests/resctrl: Commonize the signal handler register/unregister for all tests")
Suggested-by: Reinette Chatre <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Cc: <[email protected]>
Reviewed-by: Reinette Chatre <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions