[LTP] [PATCH] ldt.h: Fix typo in modify_ldt()

Andrea Cervesato andrea.cervesato@suse.com
Wed May 21 14:35:18 CEST 2025


Hi,

thanks for fixing it. @Martin feel free to merge if you think it's fine.

Acked-by: Andrea Cervesato <andrea.cervesato@suse.com>

On 5/21/25 13:41, Ricardo B. Marlière via ltp wrote:
> From: Ricardo B. Marlière <rbm@suse.com>
>
> Fixes: 5d8cb5a3ef37 ("ldt.h: Add workaround for x86_64")
> Signed-off-by: Ricardo B. Marlière <rbm@suse.com>
> ---
>   include/lapi/ldt.h | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/lapi/ldt.h b/include/lapi/ldt.h
> index 173321dd9ac34ba87eff0eee960635f30d878991..331f25b444a48c4c7f1833c376fb69404029846c 100644
> --- a/include/lapi/ldt.h
> +++ b/include/lapi/ldt.h
> @@ -46,7 +46,7 @@ static inline int modify_ldt(int func, const struct user_desc *ptr,
>   	if (rval > 0 && (int)rval < 0) {
>   		tst_res(TINFO,
>   			"WARNING: Libc mishandled modify_ldt() return value");
> -		errno = -(int)errno;
> +		errno = -(int)rval;
>   		rval = -1;
>   	}
>   #endif /* __x86_64__ */
>
> ---
> base-commit: 5d8cb5a3ef3749eb26ee22d96c9654bfde43030f
> change-id: 20250521-fixes-modify_ldt-9eb99ab171ed
>
> Best regards,


More information about the ltp mailing list