Merge "clk: qcom: clk-debug: Fix accessing mux when it is NULL"

This commit is contained in:
qctecmdr 2022-11-02 21:55:02 -07:00 committed by Gerrit - the friendly Code Review server
commit e618ed7298

View File

@ -445,6 +445,9 @@ static int clk_debug_measure_get(void *data, u64 *val)
int ret = 0;
u32 regval;
if (!measure)
return -EINVAL;
ret = clk_runtime_get_debug_mux(meas);
if (ret)
return ret;