diff options
| author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-12-28 13:23:08 +0300 |
|---|---|---|
| committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-02-02 22:53:15 +0300 |
| commit | 508f884a66abb61f22fcc2b36ab1e68492f1d295 (patch) | |
| tree | 3f29be1edc1ea605eed5430a717b3ae5020f79b9 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 0e8f6e499ebfd3617c81a89778f55fa6c54623e8 (diff) | |
| download | linux-508f884a66abb61f22fcc2b36ab1e68492f1d295.tar.xz | |
clk: make sure parent is not NULL in clk_fetch_parent_index()
If parent is given with NULL, clk_fetch_parent_index() could return
a positive index value.
Currently, parent is checked by the callers of this function, but
it would be safer to do it in this function.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
