diff options
| author | Uwe Kleine-König <[email protected]> | 2023-03-22 21:45:45 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2023-03-23 13:44:43 +0000 |
| commit | 1271a7b98e7989ba6bb978e14403fc84efe16e13 (patch) | |
| tree | f5dddb574ebd830743af205b0ba19b913c742596 /drivers/pwm/pwm-atmel-hlcdc.c | |
| parent | pwm: meson: Explicitly set .polarity in .get_state() (diff) | |
| download | kernel-1271a7b98e7989ba6bb978e14403fc84efe16e13.tar.gz kernel-1271a7b98e7989ba6bb978e14403fc84efe16e13.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-atmel-hlcdc.c')
0 files changed, 0 insertions, 0 deletions
