Files
linux/drivers
Heiner Kallweit 2e9a46e467 pwm: meson: fix handling of period/duty if greater than UINT_MAX
commit 87a2cbf02d upstream.

state->period/duty are of type u64, and if their value is greater than
UINT_MAX, then the cast to uint will cause problems. Fix this by
changing the type of the respective local variables to u64.

Fixes: b79c3670e1 ("pwm: meson: Don't duplicate the polarity internally")
Cc: stable@vger.kernel.org
Suggested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-07-23 13:49:46 +02:00
..
2023-07-23 13:49:43 +02:00
2023-07-23 13:49:37 +02:00
2023-07-19 16:21:57 +02:00
2023-04-06 12:10:44 +02:00
2023-07-19 16:21:48 +02:00