Re: powerpc/sysdev/ipic: check primary_ipic NULL pointer before using it

2018-10-22 Thread Michael Ellerman
On Mon, 2018-08-27 at 08:27:27 UTC, Christophe Leroy wrote: > ipic_get_mcp_status() is used by targets implementing NMI > watchdog in target specific machine check handler in order > to known whether a machine check results from a watchdog > NMI reset. > > In case of very early machine check, prim

[PATCH] powerpc/sysdev/ipic: check primary_ipic NULL pointer before using it

2018-08-27 Thread Christophe Leroy
ipic_get_mcp_status() is used by targets implementing NMI watchdog in target specific machine check handler in order to known whether a machine check results from a watchdog NMI reset. In case of very early machine check, primary_ipic pointer might not have been set yet, so ipic_get_mcp_status() n