aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBjorn Andersson <[email protected]>2019-09-12 19:40:29 -0700
committerStephen Boyd <[email protected]>2019-09-17 13:26:31 -0700
commit7f81c2426587b34bf73e643c1a6d080dfa14cf8a (patch)
tree6be091a0edf53fbcec76fb7c48c8d49a11b6d253 /scripts
parent5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff)
clk: Make clk_bulk_get_all() return a valid "id"
The adreno driver expects the "id" field of the returned clk_bulk_data to be filled in with strings from the clock-names property. But due to the use of kmalloc_array() in of_clk_bulk_get_all() it receives a list of bogus pointers instead. Zero-initialize the "id" field and attempt to populate with strings from the clock-names property to resolve both these issues. Fixes: 616e45df7c4a ("clk: add new APIs to operate on all available clocks") Fixes: 8e3e791d20d2 ("drm/msm: Use generic bulk clock function") Cc: Dong Aisheng <[email protected]> Cc: Jordan Crouse <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Reviewed-by: Jordan Crouse <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions