diff options
author | 2025-01-23 18:27:07 +0100 | |
---|---|---|
committer | 2025-01-23 20:35:53 +0100 | |
commit | da6b353786997c0ffa67127355ad1d54ed3324c2 (patch) | |
tree | eaf64d98e08b8a8d3258252872e55feac9831dc1 /scripts/generate_rust_analyzer.py | |
parent | pwm: microchip-core: fix incorrect comparison with max period (diff) | |
download | wireguard-linux-da6b353786997c0ffa67127355ad1d54ed3324c2.tar.xz wireguard-linux-da6b353786997c0ffa67127355ad1d54ed3324c2.zip |
pwm: Ensure callbacks exist before calling them
If one of the waveform functions is called for a chip that only supports
.apply(), we want that an error code is returned and not a NULL pointer
exception.
Fixes: 6c5126c6406d ("pwm: Provide new consumer API functions for waveforms")
Cc: stable@vger.kernel.org
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Tested-by: Trevor Gamblin <tgamblin@baylibre.com>
Link: https://lore.kernel.org/r/20250123172709.391349-2-u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions