Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da8434cb authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: clock-a7: fix memory corruption due to out of boundary write"

parents feaee0e2 9c8545b7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -193,7 +193,8 @@ static int of_get_fmax_vdd_class(struct platform_device *pdev, struct clk *c,
	if (!c->fmax)
		return -ENOMEM;

	array = devm_kzalloc(&pdev->dev, prop_len * sizeof(u32), GFP_KERNEL);
	array = devm_kzalloc(&pdev->dev,
			prop_len * sizeof(u32) * 2, GFP_KERNEL);
	if (!array)
		return -ENOMEM;