diff options
author | Dave Hansen <dave.hansen@linux.intel.com> | 2017-02-03 13:51:34 -0500 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2017-02-08 13:15:35 -0500 |
commit | 16846c2d96b0d7b3f7123257c4b58b06768c6d65 (patch) | |
tree | e4c5bc83f4d162e3cc5c89346e2e856bb073f156 | |
parent | 0a7d2cd7407da88cec68556777458a4b897d91d8 (diff) |
selftests, x86, protection_keys: fix uninitialized variable warning
'orig_pkru' might have been uninitialized here. Fix it.
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
-rw-r--r-- | tools/testing/selftests/x86/protection_keys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/x86/protection_keys.c b/tools/testing/selftests/x86/protection_keys.c index 46f53ec502f6..bccc6f2a2f7e 100644 --- a/tools/testing/selftests/x86/protection_keys.c +++ b/tools/testing/selftests/x86/protection_keys.c | |||
@@ -462,7 +462,7 @@ void pkey_disable_set(int pkey, int flags) | |||
462 | unsigned long syscall_flags = 0; | 462 | unsigned long syscall_flags = 0; |
463 | int ret; | 463 | int ret; |
464 | int pkey_rights; | 464 | int pkey_rights; |
465 | u32 orig_pkru; | 465 | u32 orig_pkru = rdpkru(); |
466 | 466 | ||
467 | dprintf1("START->%s(%d, 0x%x)\n", __func__, | 467 | dprintf1("START->%s(%d, 0x%x)\n", __func__, |
468 | pkey, flags); | 468 | pkey, flags); |