diff options
author | 2017-07-27 00:56:27 +0100 | |
---|---|---|
committer | 2017-08-31 18:44:13 -0700 | |
commit | df2f84516758788889281e97d736c7863ff200ea (patch) | |
tree | 36758c824f6a6720282a6c2717c5495c612f6313 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | clk: Don't write error code into divider register (diff) | |
download | wireguard-linux-df2f84516758788889281e97d736c7863ff200ea.tar.xz wireguard-linux-df2f84516758788889281e97d736c7863ff200ea.zip |
clk: ti: check for null return in strrchr to avoid null dereferencing
strrchr can potentially return a null so the following strlen on the
null pointer can cause a null dereference. Add a check to see if
the string postfix is not null before calling strlen.
Detected by CoverityScan, CID#1452039 ("Dereference null return")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions