[PATCH v3] powerpc/imc: Dont create debugfs files for cpu-less nodes

Michael Ellerman patch-notifications at ellerman.id.au
Thu Sep 19 20:25:41 AEST 2019


On Tue, 2019-08-27 at 10:16:35 UTC, Madhavan Srinivasan wrote:
> Commit <684d984038aa> ('powerpc/powernv: Add debugfs interface for imc-mode
> and imc') added debugfs interface for the nest imc pmu devices to support
> changing of different ucode modes. Primarily adding this capability for
> debug. But when doing so, the code did not consider the case of cpu-less
> nodes. So when reading the _cmd_ or _mode_ file of a cpu-less node
> will create this crash.
> 
...
> 
> Fixes: 684d984038aa ('powerpc/powernv: Add debugfs interface for imc-mode and imc')
> Reported-by: Qian Cai <cai at lca.pw>
> Suggested-by: Michael Ellerman <mpe at ellerman.id.au>
> Signed-off-by: Madhavan Srinivasan <maddy at linux.vnet.ibm.com>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/41ba17f20ea835c489e77bd54e2da73184e22060

cheers


More information about the Linuxppc-dev mailing list