Commit 6e6b9cb7 authored by Adrian Reber's avatar Adrian Reber Committed by Pavel Emelyanov

cr-service: fix return result for not supported cpuinfo

The change to fill out cr_errno if cpuinfo dump/check failed
in the previous patch 7e862bb3
was returning (-ENOTSUP & 0xff). To easier check for
the return result this is now changed to just return ENOTSUP.
Signed-off-by: 's avatarAdrian Reber <areber@redhat.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 7f86ceb4
......@@ -842,7 +842,11 @@ cout:
switch (WEXITSTATUS(status)) {
case (-ENOTSUP & 0xff):
resp.has_cr_errno = 1;
resp.cr_errno = WEXITSTATUS(status);
/*
* Let's return the actual error code and
* not just (-ENOTSUP & 0xff)
*/
resp.cr_errno = ENOTSUP;
break;
case 0:
success = true;
......
Markdown is supported
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