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-07-17 18:31:06 -07:00
2017-06-19 17:14:11 -07:00
2016-03-02 17:44:59 -08:00
2016-12-15 15:39:02 -08:00
2017-08-23 15:39:58 -07:00
2017-08-23 15:30:29 -07:00
2016-04-15 16:50:04 -07:00
2017-08-30 22:27:49 -07:00
2017-08-30 22:30:30 -07:00
2016-03-02 17:48:26 -08:00
2017-06-02 15:37:45 -07:00
2017-08-30 22:29:11 -07:00
2016-10-23 10:18:45 -07:00