OSDN Git Service

powerpc/mm/ptdump: Wrap seq_printf() to handle NULL pointers
authorRussell Currey <ruscur@russell.cc>
Thu, 2 May 2019 07:39:46 +0000 (17:39 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 May 2019 15:58:11 +0000 (01:58 +1000)
commit5f18cbdbdd42b050c51eb9859f8ce43db3f51846
treea7a10c98da7bcec17e83ab9b560a07cfd11c13d7
parentc9e0fc33b8be52a7134ed0ee79b6a1e332e1b9d0
powerpc/mm/ptdump: Wrap seq_printf() to handle NULL pointers

Lovingly borrowed from the arch/arm64 ptdump code.

This doesn't seem to be an issue in practice, but is necessary for my
upcoming commit.

Signed-off-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/ptdump/ptdump.c