提交 16846c2d 编写于 作者: D Dave Hansen 提交者: Shuah Khan

selftests, x86, protection_keys: fix uninitialized variable warning

'orig_pkru' might have been uninitialized here.  Fix it.
Signed-off-by: NDave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
上级 0a7d2cd7
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册