diff options
| author | Sebastian Andrzej Siewior <[email protected]> | 2025-05-28 08:55:19 +0000 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2025-06-05 12:37:58 +0000 |
| commit | 1a9dcf69c7a97e733aa2fc026db22f22928ca7b7 (patch) | |
| tree | 14e5c7cf3e7253c26838e89d22b6818838a73782 /drivers/fpga/altera-fpga2sdram.c | |
| parent | Merge tag 'rust-6.16' of git://git.kernel.org/pub/scm/linux/kernel/git/ojeda/... (diff) | |
| download | kernel-1a9dcf69c7a97e733aa2fc026db22f22928ca7b7.tar.gz kernel-1a9dcf69c7a97e733aa2fc026db22f22928ca7b7.zip | |
selftests/futex: getopt() requires int as return value.
Mark reported that futex_priv_hash fails on ARM64.
It turns out that the command line parsing does not terminate properly
and ends in the default case assuming an invalid option was passed.
Use an int as the return type for getopt().
Closes: https://lore.kernel.org/all/[email protected]/
Fixes: 3163369407baf ("selftests/futex: Add futex_numa_mpol")
Fixes: cda95faef7bcf ("selftests/futex: Add futex_priv_hash")
Reported-by: Mark Brown <[email protected]>
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/fpga/altera-fpga2sdram.c')
0 files changed, 0 insertions, 0 deletions
