diff options
author | Daniel Thompson <[email protected]> | 2018-07-25 08:38:30 +0100 |
---|---|---|
committer | Lee Jones <[email protected]> | 2018-07-25 09:09:59 +0100 |
commit | 633786736ed53a53b8d0a630cc3ff57381027081 (patch) | |
tree | 823842fd94484802c4965fa12ac9a057bd7cdb2f /tools/perf/util/trace-event-scripting.c | |
parent | 858c5dfc8c336ca26b8d4d9f639a9dc40c5daa80 (diff) |
backlight: pwm_bl: Fix uninitialized variable
Currently, if the DT does not define num-interpolated-steps then
num_steps is undefined and the interpolation code will deploy randomly.
Fix with a simple initialize to zero.
Fixes: 573fe6d1c25c ("backlight: pwm_bl: Linear interpolation between brightness-levels")
Reported-by: Marcel Ziswiler <[email protected]>
Signed-off-by: Daniel Thompson <[email protected]>
Tested-by: Marcel Ziswiler <[email protected]>
Reviewed-by: Douglas Anderson <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions