Colin Ian King df2f845167 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>
2017-08-31 18:44:13 -07:00
..
2017-08-23 15:53:25 -07:00
2015-07-20 11:11:28 -07:00
2016-08-01 18:37:45 -04:00
2017-06-15 10:48:08 +03:00
2017-08-23 15:53:25 -07:00
2016-03-01 16:21:25 -08:00