|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging-4.15] tools/libs/ctrl: don't set errno to a negative value
commit f151bb7ce45d7995c7fc4d3dd9df3f96cf637ffc
Author: Juergen Gross <jgross@xxxxxxxx>
AuthorDate: Tue Jun 7 14:16:49 2022 +0200
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Jun 7 14:16:49 2022 +0200
tools/libs/ctrl: don't set errno to a negative value
The claimed reason for setting errno to -1 is wrong. On x86
xc_domain_pod_target() will set errno to a sane value in the error
case.
Fixes: ff1745d5882b ("tools: libxl: do not set the PoD target on ARM")
Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
master commit: a0fb7e0e73483ed042d5ca34861a891a51ad337b
master date: 2022-04-22 20:39:34 +0100
---
tools/libs/ctrl/xc_domain.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/tools/libs/ctrl/xc_domain.c b/tools/libs/ctrl/xc_domain.c
index e7cea4a17d..52892fca18 100644
--- a/tools/libs/ctrl/xc_domain.c
+++ b/tools/libs/ctrl/xc_domain.c
@@ -1276,9 +1276,7 @@ int xc_domain_get_pod_target(xc_interface *xch,
uint64_t *pod_cache_pages,
uint64_t *pod_entries)
{
- /* On x86 (above) xc_domain_pod_target will incorrectly return -1
- * with errno==-1 on error. Do the same for least surprise. */
- errno = -1;
+ errno = EOPNOTSUPP;
return -1;
}
#endif
--
generated by git-patchbot for /home/xen/git/xen.git#staging-4.15
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |