diff options
author | John Crispin <[email protected]> | 2012-04-23 19:01:58 +0200 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2012-04-24 15:09:50 +0200 |
commit | 15f70e1b9a1a6351c252cb8892272cc4601818c7 (patch) | |
tree | 97d38f59d412ca6f001f0674652958f0790466a9 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | dcb5dbc305b975cccf40942feba40964069541d3 (diff) |
pinctrl: fix signed vs unsigned conditionals inside pinmux_map_to_setting
pinmux_map_to_setting() uses setting->data.mux.func/group to store the return
code of pinmux_func_name_to_selector/pinctrl_get_group_selector(). However,
struct pinctrl_setting_mux defines these elements as unsigned, resulting in all
error codes getting lost. The conditionals following the assignments will always
evaluate to false thus breaking the error paths.
This bug can be triggered by loading a pinmux group map from the devicetree
with an invalid function/group string.
Signed-off-by: John Crispin <[email protected]>
Acked-by: Stephen Warren <[email protected]>
Acked-by: Dong Aisheng <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions