Skip to content
Commit 0ebee0a6 authored by Dan Carpenter's avatar Dan Carpenter Committed by Georgi Djakov
Browse files

interconnect: qcom: rpm: allocate enough data in probe()



This was not allocating enough bytes.  There are two issue here.
First, there was a typo where it was taking the size of the pointer
instead of the size of the struct, "sizeof(qp->intf_clks)" vs
"sizeof(*qp->intf_clks)".  Second, it's an array of "cd_num" clocks so
we need to allocate space for more than one element.

Fixes: 2e2113c8 ("interconnect: qcom: rpm: Handle interface clocks")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/e0fa275c-ae63-4342-9c9e-0ffaf6314da1@kili.mountain


Signed-off-by: default avatarGeorgi Djakov <djakov@kernel.org>
parent 130733a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment