Re: powerpc/perf: Fix a sizeof() typo so we allocate less memory

2017-11-06 Thread Michael Ellerman
Dan Carpenter writes: > We're allocating the size of the struct which is 32 bytes when we should > be allocating sizeof(void *) which is 4 or 8 bytes depending on the > architecture. > > Fixes: 885dcd709ba9 ("powerpc/perf: Add nest IMC PMU support") > Signed-off-by: Dan Carpenter Thanks. I thi

powerpc/perf: Fix a sizeof() typo so we allocate less memory

2017-11-04 Thread Dan Carpenter
We're allocating the size of the struct which is 32 bytes when we should be allocating sizeof(void *) which is 4 or 8 bytes depending on the architecture. Fixes: 885dcd709ba9 ("powerpc/perf: Add nest IMC PMU support") Signed-off-by: Dan Carpenter diff --git a/arch/powerpc/perf/imc-pmu.c b/arch/p