diff options
| author | Hongbo Li <[email protected]> | 2024-09-02 02:45:34 +0000 |
|---|---|---|
| committer | John Paul Adrian Glaubitz <[email protected]> | 2024-09-26 15:25:29 +0000 |
| commit | c3e878ca7b6663d2ad77a6e17460fc47a2347f4a (patch) | |
| tree | 51f43aa06953678b00c2d5cb0ce916f3c98ceef8 /rust/helpers/signal.c | |
| parent | sh: Remove unused declarations for make_maskreg_irq() and irq_mask_register (diff) | |
| download | kernel-c3e878ca7b6663d2ad77a6e17460fc47a2347f4a.tar.gz kernel-c3e878ca7b6663d2ad77a6e17460fc47a2347f4a.zip | |
sh: intc: Replace simple_strtoul() with kstrtoul()
The function simple_strtoul() performs no error checking
in scenarios where the input value overflows the intended
output variable.
We can replace the use of simple_strtoul() with the safer
alternative kstrtoul(). This also allows us to print an
error message in case of failure.
Signed-off-by: Hongbo Li <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: John Paul Adrian Glaubitz <[email protected]>
Signed-off-by: John Paul Adrian Glaubitz <[email protected]>
Diffstat (limited to 'rust/helpers/signal.c')
0 files changed, 0 insertions, 0 deletions
