diff options
author | Uwe Kleine-König <[email protected]> | 2023-03-22 22:45:45 +0100 |
---|---|---|
committer | Thierry Reding <[email protected]> | 2023-03-23 14:44:43 +0100 |
commit | 1271a7b98e7989ba6bb978e14403fc84efe16e13 (patch) | |
tree | f5dddb574ebd830743af205b0ba19b913c742596 /net/unix/af_unix.c | |
parent | 8caa81eb950cb2e9d2d6959b37d853162d197f57 (diff) |
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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions