# Re: \[PATCH\] powerpc/xmon: check before calling xive functions

- From: Benjamin Herrenschmidt \<hidden\>
- Date: 2017-10-19 15:22:02 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2017/10/9500380

```text
On Thu, 2017-10-19 at 15:09 +0200, Cédric Le Goater wrote:
> > No that's wrong. xive_enabled() is only set if Linux is using native
> > xive mode but some of those xmon functions dump the emulated state.
> > 
> > We should fix the actual cause of the crash.
> 
> which should be in the OPAL XIVE dump routines then ? 

Yup, probably needs a NULL check or something...

Cheers,
Ben.
```
