Commit 18cb2685 authored by Bala-Vignesh-Reddy's avatar Bala-Vignesh-Reddy Committed by Greg Kroah-Hartman
Browse files

selftests: arm64: Check fread return value in exec_target



[ Upstream commit a679e568 ]

Fix -Wunused-result warning generated when compiled with gcc 13.3.0,
by checking fread's return value and handling errors, preventing
potential failures when reading from stdin.

Fixes compiler warning:
warning: ignoring return value of 'fread' declared with attribute
'warn_unused_result' [-Wunused-result]

Fixes: 806a15b2 ("kselftests/arm64: add PAuth test for whether exec() changes keys")

Signed-off-by: default avatarBala-Vignesh-Reddy <reddybalavignesh9979@gmail.com>
Reviewed-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent dadf1f44
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment