powerpc/perf: Fix usage of nest_imc_refc

Michael Ellerman patch-notifications at ellerman.id.au
Fri Aug 18 22:51:04 AEST 2017


On Wed, 2017-08-16 at 16:21:34 UTC, Madhavan Srinivasan wrote:
> nest_imc_refc is a reference count struct,
> used to track number of active perf sessions
> using the nest units.
> 
> It is preferred to access nest_imc_refc using
> per-cpu pointer 'local_nest_imc_refc'. Since,
> nest_imc_refc is not initialized using node_id
> as array index. Patch to fix the same.
> 
> Fixes: 885dcd709ba91 ('powerpc/perf: Add nest IMC PMU support')
> Reported-by: Dan Carpenter <dan.carpenter at oracle.com>
> Signed-off-by: Madhavan Srinivasan <maddy at linux.vnet.ibm.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/711bd207a233141308d0aea0d2e286

cheers


More information about the Linuxppc-dev mailing list