aboutsummaryrefslogtreecommitdiff
path: root/drivers/pwm/pwm-stm32.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2024-03-10 12:00:58 +0100
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2024-04-26 21:29:17 +0200
commitc0143f68919e6e36a4fa8816ddb49d266f3b21de (patch)
treec0b63363a945227b1a4886af94af672fca6b7834 /drivers/pwm/pwm-stm32.c
parent9e287e0c5fc7b0b926382a6db0f97c3f34a03640 (diff)
downloadlinux-c0143f68919e6e36a4fa8816ddb49d266f3b21de.tar.gz
linux-c0143f68919e6e36a4fa8816ddb49d266f3b21de.tar.bz2
linux-c0143f68919e6e36a4fa8816ddb49d266f3b21de.zip
pwm: sti: Use devm_kcalloc() instead of calculating the size for devm_kzalloc()
Using a multiplication to calculate the size of an allocation isn't recommended in case the mulitplication overflows. While the chance this happens is low, preventing such an error is easy enough; so do that. Link: https://lore.kernel.org/r/17062aef42e6677629a056e25c6916d8b6eaedeb.1710068192.git.u.kleine-koenig@pengutronix.de Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
0 files changed, 0 insertions, 0 deletions