signal/powerpc: Factor the common exception code into exception_common
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 18 Sep 2018 07:37:28 +0000 (09:37 +0200)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 21 Sep 2018 13:50:26 +0000 (15:50 +0200)
commit2c44ce285fdd21713769bace4c27336d134be8a5
tree6ed9a08badb7d0b749e6583a3cbb0c808ffa951d
parentcd60ab7abb3df301c4ff2cf7d619cf7e30cca289
signal/powerpc: Factor the common exception code into exception_common

It is brittle and wrong to populate si_pkey when there was not a pkey
exception.  The field does not exist for all si_codes and in some
cases another field exists in the same memory location.

So factor out the code that all exceptions handlers must run
into exception_common, leaving the individual exception handlers
to generate the signals themselves.

Reviewed-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
arch/powerpc/kernel/traps.c