On Mon, Jan 21, 2019 at 12:06 AM Mike Rapoport <[email protected]> wrote: > > Add check for the return value of memblock_alloc*() functions and call > panic() in case of error. > The panic message repeats the one used by panicing memblock allocators with > adjustment of parameters to include only relevant ones. > > The replacement was mostly automated with semantic patches like the one > below with manual massaging of format strings. > > @@ > expression ptr, size, align; > @@ > ptr = memblock_alloc(size, align); > + if (!ptr) > + panic("%s: Failed to allocate %lu bytes align=0x%lx\n", __func__, > size, align); > > Signed-off-by: Mike Rapoport <[email protected]> > Reviewed-by: Guo Ren <[email protected]> # c-sky > Acked-by: Paul Burton <[email protected]> # MIPS > Acked-by: Heiko Carstens <[email protected]> # s390 > Reviewed-by: Juergen Gross <[email protected]> # Xen > --- > arch/xtensa/mm/kasan_init.c | 4 ++++ > arch/xtensa/mm/mmu.c | 3 +++
For xtensa: Acked-by: Max Filippov <[email protected]> -- Thanks. -- Max _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
