acrn-kernel/drivers/pwm
Uwe Kleine-König 1271a7b98e pwm: Zero-initialize the pwm_state passed to driver's .get_state()
This is just to ensure that .usage_power is properly initialized and
doesn't contain random stack data. The other members of struct pwm_state
should get a value assigned in a successful call to .get_state(). So in
the absence of bugs in driver implementations, this is only a safe-guard
and no fix.

Reported-by: Munehisa Kamata <kamatam@amazon.com>
Link: https://lore.kernel.org/r/20230310214004.2619480-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
2023-03-23 14:44:43 +01:00
..
Kconfig pwm: pxa: Enable for MMP platform 2022-12-06 12:46:15 +01:00
Makefile
core.c pwm: Zero-initialize the pwm_state passed to driver's .get_state() 2023-03-23 14:44:43 +01:00
pwm-ab8500.c pwm: ab8500: Implement .get_state() 2023-02-17 15:59:52 +01:00
pwm-atmel-hlcdc.c
pwm-atmel-tcb.c
pwm-atmel.c pwm: Make .get_state() callback return an error code 2022-12-06 12:46:22 +01:00
pwm-bcm-iproc.c pwm: Make .get_state() callback return an error code 2022-12-06 12:46:22 +01:00
pwm-bcm-kona.c
pwm-bcm2835.c
pwm-berlin.c
pwm-brcmstb.c
pwm-clk.c
pwm-clps711x.c
pwm-crc.c pwm: crc: Propagate errors in .get_state() to the caller 2022-12-06 12:46:25 +01:00
pwm-cros-ec.c pwm: cros-ec: Explicitly set .polarity in .get_state() 2023-03-23 14:44:41 +01:00
pwm-dwc.c pwm: dwc: Use devm_pwmchip_add() 2023-02-20 12:26:35 +01:00
pwm-ep93xx.c
pwm-fsl-ftm.c
pwm-hibvt.c pwm: hibvt: Explicitly set .polarity in .get_state() 2023-03-23 14:44:40 +01:00
pwm-img.c
pwm-imx-tpm.c pwm: Make .get_state() callback return an error code 2022-12-06 12:46:22 +01:00
pwm-imx1.c
pwm-imx27.c pwm: imx27: Propagate errors in .get_state() to the caller 2022-12-06 12:46:26 +01:00
pwm-intel-lgm.c pwm: Make .get_state() callback return an error code 2022-12-06 12:46:22 +01:00
pwm-iqs620a.c pwm: iqs620a: Explicitly set .polarity in .get_state() 2023-03-23 14:44:41 +01:00
pwm-jz4740.c
pwm-keembay.c pwm: Make .get_state() callback return an error code 2022-12-06 12:46:22 +01:00
pwm-lp3943.c pwm: lp3943: Drop unused i2c include 2023-01-30 17:20:30 +01:00
pwm-lpc18xx-sct.c
pwm-lpc32xx.c
pwm-lpss-pci.c
pwm-lpss-platform.c
pwm-lpss.c pwm: Changes for v6.2-rc1 2022-12-21 09:41:28 -08:00
pwm-lpss.h
pwm-mediatek.c pwm: mediatek: Add support for MT7986 2022-12-06 12:46:12 +01:00
pwm-meson.c pwm: meson: Explicitly set .polarity in .get_state() 2023-03-23 14:44:42 +01:00
pwm-mtk-disp.c pwm: mtk-disp: Propagate errors in .get_state() to the caller 2022-12-06 12:46:27 +01:00
pwm-mxs.c
pwm-ntxec.c
pwm-omap-dmtimer.c
pwm-pca9685.c pwm: pca9685: Convert to i2c's .probe_new() 2022-12-06 12:46:31 +01:00
pwm-pxa.c pwm: pxa: Add reference manual link and limitations 2022-12-06 12:46:15 +01:00
pwm-raspberrypi-poe.c pwm: Make .get_state() callback return an error code 2022-12-06 12:46:22 +01:00
pwm-rcar.c
pwm-renesas-tpu.c
pwm-rockchip.c pwm: rockchip: Propagate errors in .get_state() to the caller 2022-12-06 12:46:28 +01:00
pwm-samsung.c
pwm-sifive.c pwm: sifive: Always let the first pwm_apply_state succeed 2023-01-30 16:42:45 +01:00
pwm-sl28cpld.c pwm: Make .get_state() callback return an error code 2022-12-06 12:46:22 +01:00
pwm-spear.c
pwm-sprd.c pwm: sprd: Explicitly set .polarity in .get_state() 2023-03-23 14:44:42 +01:00
pwm-sti.c
pwm-stm32-lp.c pwm: stm32-lp: fix the check on arr and cmp registers update 2023-01-30 16:42:45 +01:00
pwm-stm32.c pwm: stm32: Use regmap_clear_bits and regmap_set_bits where applicable 2022-12-06 12:46:11 +01:00
pwm-stmpe.c
pwm-sun4i.c pwm: sun4i: Propagate errors in .get_state() to the caller 2022-12-06 12:46:30 +01:00
pwm-sunplus.c pwm: Make .get_state() callback return an error code 2022-12-06 12:46:22 +01:00
pwm-tegra.c
pwm-tiecap.c
pwm-tiehrpwm.c
pwm-twl-led.c
pwm-twl.c
pwm-visconti.c pwm: Make .get_state() callback return an error code 2022-12-06 12:46:22 +01:00
pwm-vt8500.c
pwm-xilinx.c pwm: Make .get_state() callback return an error code 2022-12-06 12:46:22 +01:00
sysfs.c