diff options
author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2025-01-23 18:27:07 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-08 10:02:26 +0100 |
commit | 0267b5d146322a856c338aedcae39e0b1047a6f3 (patch) | |
tree | 5fdb6dc3c3cb39ef537bdf6e97462c6baf863d98 /lib/crypto/mpi/mpi-sub-ui.c | |
parent | 46576834291869457d4772bb7df72d7c2bb3d57f (diff) |
pwm: Ensure callbacks exist before calling them
commit da6b353786997c0ffa67127355ad1d54ed3324c2 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions