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

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

Merge "msm: kgsl: Allocate enough space for the fault detect registers"

parents dbb70e3f 77702eb9
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1011,11 +1011,13 @@ static int adreno_init(struct kgsl_device *device)
	adreno_ft_regs_num = (ARRAY_SIZE(adreno_ft_regs_default) +
				   gpudev->ft_perf_counters_count*2);

	adreno_ft_regs = kzalloc(adreno_ft_regs_num, GFP_KERNEL);
	adreno_ft_regs = kzalloc(adreno_ft_regs_num * sizeof(unsigned int),
						GFP_KERNEL);
	if (!adreno_ft_regs)
		return -ENOMEM;

	adreno_ft_regs_val = kzalloc(adreno_ft_regs_num, GFP_KERNEL);
	adreno_ft_regs_val = kzalloc(adreno_ft_regs_num * sizeof(unsigned int),
						GFP_KERNEL);
	if (!adreno_ft_regs_val)
		return -ENOMEM;