aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorPhilipp Zabel <[email protected]>2015-12-10 10:09:06 +0100
committerLee Jones <[email protected]>2016-01-11 06:36:43 +0000
commit8777078015bb77f0561303b6dea23d40bd9f3053 (patch)
tree39bc51aee31750f606a4a84b036dfc94c98bfdbb /tools/perf/util/trace-event-scripting.c
parentfcf13f0b9e4b54c51dff8366fc9a96d85129ff4c (diff)
backlight: pwm_bl: Fix broken PWM backlight for non-dt platforms
Commit ee65ad0e2a9e ("backlight: pwm_bl: Avoid backlight flicker when probed from DT") tries to dereference the device of_node pointer unconditionally, causing a NULL pointer dereference on non-dt platforms. Fix it by replacing the phandle variable with a node variable and by checking that for NULL before dereferencing it. Reported-by: Robert Jarzmik <[email protected]> Signed-off-by: Philipp Zabel <[email protected]> Acked-by: Thierry Reding <[email protected]> Tested-by: Robert Jarzmik <[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