signal/powerpc: Specialize _exception_pkey for handling pkey exceptions
Now that _exception no longer calls _exception_pkey it is no longer necessary to handle any signal with any si_code. All pkey exceptions are SIGSEGV with paired with SEGV_PKUERR. So just handle that case and remove the now unnecessary parameters from _exception_pkey. Reviewed-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
@@ -152,7 +152,7 @@ static int bad_key_fault_exception(struct pt_regs *regs, unsigned long address,
|
||||
if (!user_mode(regs))
|
||||
return SIGSEGV;
|
||||
|
||||
_exception_pkey(SIGSEGV, regs, SEGV_PKUERR, address, pkey);
|
||||
_exception_pkey(regs, address, pkey);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user