From b1e8f70b05ede4fa6807fdd1d0fb8744f5e1728e Mon Sep 17 00:00:00 2001 From: Alexander Kartashov Date: Wed, 9 Jan 2013 17:41:15 +0400 Subject: [PATCH] restorer: reduce the shift value to fit the error code into ARM long integer. Signed-off-by: Alexander Kartashov Signed-off-by: Pavel Emelyanov --- pie/restorer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pie/restorer.c b/pie/restorer.c index 44f8a32b2..e7b282bc2 100644 --- a/pie/restorer.c +++ b/pie/restorer.c @@ -693,7 +693,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; }