[PATCH v2] powerpc: drmem: avoid NULL pointer dereference when drmem is unavailable
Nathan Lynch
nathanl at linux.ibm.com
Thu Feb 6 03:55:47 AEDT 2020
Michal Suchanek <msuchanek at suse.de> writes:
> From: Libor Pechacek <lpechacek at suse.cz>
>
> In guests without hotplugagble memory drmem structure is only zero
> initialized. Trying to manipulate DLPAR parameters results in a crash.
>
[...]
>
> Fixes: 6c6ea53725b3 ("powerpc/mm: Separate ibm, dynamic-memory data from DT format")
> Cc: Michal Suchanek <msuchanek at suse.cz>
> Cc: stable at vger.kernel.org
> Signed-off-by: Libor Pechacek <lpechacek at suse.cz>
> Signed-off-by: Michal Suchanek <msuchanek at suse.de>
> ---
> v2: rename last_lmb -> limit, clarify error condition.
Acked-by: Nathan Lynch <nathanl at linux.ibm.com>
Thanks!
More information about the Linuxppc-dev
mailing list