1
0
Fork 0

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>
zero-colors
Dave Hansen 2017-02-03 10:51:34 -08:00 committed by Shuah Khan
parent 0a7d2cd740
commit 16846c2d96
1 changed files with 1 additions and 1 deletions

View File

@ -462,7 +462,7 @@ void pkey_disable_set(int pkey, int flags)
unsigned long syscall_flags = 0;
int ret;
int pkey_rights;
u32 orig_pkru;
u32 orig_pkru = rdpkru();
dprintf1("START->%s(%d, 0x%x)\n", __func__,
pkey, flags);