Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16846c2d authored by Dave Hansen's avatar Dave Hansen Committed by Shuah Khan
Browse files

selftests, x86, protection_keys: fix uninitialized variable warning



'orig_pkru' might have been uninitialized here.  Fix it.

Signed-off-by: default avatarDave Hansen <dave.hansen@linux.intel.com>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent 0a7d2cd7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);