ldt.h: Fix typo in modify_ldt()
PATCH 1/1 ldt.h: Fix typo in modify_ldt()
From: Ricardo B. Marlière <[email protected]>
--- include/lapi/ldt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/lapi/ldt.h +1 -1
@@ -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,
Signature · 5 lines
Ricardo B. Marlière <[email protected]> -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi,
thanks for fixing it. @Martin feel free to merge if you think it's fine.
Quoted 27 lines · Ricardo B. Marlière via ltp
From: Ricardo B. Marlière <[email protected]>
Fixes 5d8cb5a3ef37 ("ldt.h: Add workaround for x86_64")Signed-off-by Ricardo B. Marlière <[email protected]>--- include/lapi/ldt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/lapi/ldt.h +1
-2@@ -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-9eb99ab171edBest regards,
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Martin Doucha
Reviewed-byQuoted 3 lines · Andrea Cervesato
Hi,
thanks for fixing it. @Martin feel free to merge if you think it's fine.
Sorry, I don't have push access to the main LTP repo. Also:
Quoted 31 lines
Acked-by Andrea Cervesato <[email protected]>Quoted 28 lines · Ricardo B. Marlière via ltp
From: Ricardo B. Marlière <[email protected]>
Fixes 5d8cb5a3ef37 ("ldt.h: Add workaround for x86_64")Signed-off-by Ricardo B. Marlière <[email protected]>---
include/lapi/ldt.h| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)include/lapi/ldt.h +1
-1@@ -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-9eb99ab171edBest regards,
Signature · 10 lines
Martin Doucha [email protected] SW Quality Engineer SUSE LINUX, s.r.o. CORSO IIa Krizikova 148/34 186 00 Prague 8 Czech Republic -- Mailing list info: https://lists.linux.it/listinfo/ltp
Andrea Cervesato via ltp
AppliedMerged, thanks!
Quoted 43 lines · Martin Doucha
Quoted 3 lines · Andrea Cervesato
Hi,
thanks for fixing it. @Martin feel free to merge if you think it's fine.
Sorry, I don't have push access to the main LTP repo. Also:
Reviewed-by Martin Doucha <[email protected]>Quoted 31 lines
Acked-by Andrea Cervesato <[email protected]>Quoted 28 lines · Ricardo B. Marlière via ltp
From: Ricardo B. Marlière <[email protected]>
Fixes 5d8cb5a3ef37 ("ldt.h: Add workaround for x86_64")Signed-off-by Ricardo B. Marlière <[email protected]>---
include/lapi/ldt.h| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)include/lapi/ldt.h +1
-1@@ -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-9eb99ab171edBest regards,
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp