aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-05-23 13:27:28 +0300
committerGeorgi Djakov <[email protected]>2023-05-30 01:34:50 +0300
commit0ebee0a6f73e7169fb2ee59587aad2880438485a (patch)
tree0d81343d905e1fb360f74f86761183a571e249e4 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parent130733a10079102a78b51bf19bf4e4fa4d119c67 (diff)
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: 2e2113c8a64f ("interconnect: qcom: rpm: Handle interface clocks") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Georgi Djakov <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions