x86/umip: Factor out instruction fetch

Factor out the code to fetch the instruction from user-space to a helper
function.

No functional changes.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200907131613.12703-9-joro@8bytes.org
This commit is contained in:
Joerg Roedel 2020-09-07 15:15:09 +02:00 • committed by Borislav Petkov
commit 172b75e56b
3 changed files with 46 additions and 20 deletions