Skip to content
Commit c8dbaa9e authored by Nathan Lynch's avatar Nathan Lynch Committed by Greg Kroah-Hartman
Browse files

selftests/powerpc/papr-vpd: Fix missing variable initialization

[ Upstream commit 210cfef5

 ]

The "close handle without consuming VPD" testcase has inconsistent
results because it fails to initialize the location code object it
passes to ioctl() to create a VPD handle. Initialize the location code
to the empty string as intended.

Signed-off-by: default avatarNathan Lynch <nathanl@linux.ibm.com>
Fixes: 9118c5d3

 ("powerpc/selftests: Add test for papr-vpd")
Reported-by: default avatarGeetika Moolchandani <geetika@linux.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240404-papr-vpd-test-uninit-lc-v2-1-37bff46c65a5@linux.ibm.com
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 6c4af011
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment