diff options
| author | Haotian Zhang <[email protected]> | 2025-09-29 05:01:10 +0000 |
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2025-09-29 05:02:00 +0000 |
| commit | db74430a4218f282d16e58a38337275ad3f9f517 (patch) | |
| tree | 132e0cfc86de81977711f1cc9aca18edaaffb676 /tools/lib/traceevent/plugins/plugin_function.c | |
| parent | Input: uinput - zero-initialize uinput_ff_upload_compat to avoid info leak (diff) | |
| download | kernel-db74430a4218f282d16e58a38337275ad3f9f517.tar.gz kernel-db74430a4218f282d16e58a38337275ad3f9f517.zip | |
Input: psxpad-spi - add a check for the return value of spi_setup()
The probe function in the psxpad-spi driver calls spi_setup()
but fails to check its return value. If the SPI bus setup fails,
the driver will still load successfully, resulting in potential
error in later I/O operations.
Add a check for the return value of spi_setup() and return
an error on failure.
Fixes: 8be193c7b1f4 ("Input: add support for PlayStation 1/2 joypads connected via SPI")
Signed-off-by: Haotian Zhang <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/lib/traceevent/plugins/plugin_function.c')
0 files changed, 0 insertions, 0 deletions
