diff options
author | Abel Vesa <[email protected]> | 2019-12-11 11:25:40 +0200 |
---|---|---|
committer | Shawn Guo <[email protected]> | 2019-12-11 19:19:04 +0800 |
commit | f60f1c62c3188fcca945581e35e3440ee3fdcc95 (patch) | |
tree | 3013db2b6ff0a3c648c1497be5cb0cfda6a0f8ef /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 249fce6f3ab0dbd98caa9bc8ea4b50fa709e786a (diff) |
clk: imx: Add correct failure handling for clk based helpers
If the clk_hw based API returns an error, trying to return the clk from
hw will end up in a NULL pointer dereference. So adding the to_clk
checker and using it inside every clk based macro helper we handle that
case correctly.
This to_clk is also temporary and will go away along with the clk based
macro helpers once there is no user that need them anymore.
Signed-off-by: Abel Vesa <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions