commit | aaa29bb01cc4bf5a87dbdb219efba3b09f259d8e | [log] [tgz] |
---|---|---|
author | Tony Lindgren <tony@atomide.com> | Thu Mar 21 11:00:21 2019 -0700 |
committer | Tony Lindgren <tony@atomide.com> | Mon Apr 01 07:38:37 2019 -0700 |
tree | 6c272500ee112dfc565e8132ac6d4b5a066e1a91 | |
parent | 8b30919a4e3c7aba32dd72e8208147a6496cb16c [diff] |
bus: ti-sysc: Fix sysc_unprepare() when no clocks have been allocated If we return early before ddata->clocks have been allocated we will get a NULL pointer dereference in sysc_unprepare(). Let's fix this by returning early when no clocks are allocated. Fixes: 0eecc636e5a2 ("bus: ti-sysc: Add minimal TI sysc interconnect target driver") Signed-off-by: Tony Lindgren <tony@atomide.com>