[CRIU] [PATCH 23/44] restorer: reduce the shift value to fit the error code into ARM long integer.
Alexander Kartashov
alekskartashov at parallels.com
Mon Jan 7 10:04:52 EST 2013
Signed-off-by: Alexander Kartashov <alekskartashov at parallels.com>
---
pie/restorer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pie/restorer.c b/pie/restorer.c
index 400f8f5..2dbd5ba 100644
--- a/pie/restorer.c
+++ b/pie/restorer.c
@@ -696,7 +696,7 @@ long __export_restore_task(struct task_restore_core_args *args)
ret = sys_munmap(args->task_entries, TASK_ENTRIES_SIZE);
if (ret < 0) {
- ret = ((long)__LINE__ << 32) | -ret;
+ ret = ((long)__LINE__ << 16) | ((-ret) & 0xffff);
goto core_restore_failed;
}
--
1.7.10.4
More information about the CRIU
mailing list