Merge "msm: pcie: correct size of local PCIe clock frequency buffer"
This commit is contained in:
commit
b11aa41c03
1 changed files with 2 additions and 2 deletions
|
@ -3921,8 +3921,8 @@ static int msm_pcie_get_resources(struct msm_pcie_dev_t *dev,
|
|||
cnt = of_property_count_strings((&pdev->dev)->of_node,
|
||||
"clock-names");
|
||||
if (cnt > 0) {
|
||||
clkfreq = kzalloc(cnt * sizeof(*clkfreq),
|
||||
GFP_KERNEL);
|
||||
clkfreq = kzalloc((MSM_PCIE_MAX_CLK + MSM_PCIE_MAX_PIPE_CLK) *
|
||||
sizeof(*clkfreq), GFP_KERNEL);
|
||||
if (!clkfreq) {
|
||||
PCIE_ERR(dev, "PCIe: memory alloc failed for RC%d\n",
|
||||
dev->rc_idx);
|
||||
|
|
Loading…
Add table
Reference in a new issue