From 89e90cadd4bc77f558b95602e95021e2167b0b4e Mon Sep 17 00:00:00 2001 From: Neale Ferguson Date: Tue, 27 Mar 2007 04:22:25 +0000 Subject: [PATCH] STABLE14-s390x-syscall-patch-fix-20070326 make s390x syscall table patching work correctly (cherry picked from commit 74e22e219036ca2c42182b1356371daa07ae6494) --- src/afs/LINUX/osi_syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/afs/LINUX/osi_syscall.c b/src/afs/LINUX/osi_syscall.c index 03dfcd21fd..4b36b760fd 100644 --- a/src/afs/LINUX/osi_syscall.c +++ b/src/afs/LINUX/osi_syscall.c @@ -56,9 +56,9 @@ RCSID #if defined(AFS_S390X_LINUX24_ENV) #define INSERT_SYSCALL(SLOT, TMPPAGE, FUNC) \ - if (POINTER2SYSCALL FUNC > 0x7fffffff) { \ + if (SYSCALL2POINTER FUNC > 0x7fffffff) { \ TMPPAGE = kmalloc ( PAGE_SIZE, GFP_DMA|GFP_KERNEL ); \ - if (POINTER2SYSCALL TMPPAGE > 0x7fffffff) { \ + if (SYSCALL2POINTER TMPPAGE > 0x7fffffff) { \ printf("Cannot allocate page for FUNC syscall jump vector\n"); \ return EINVAL; \ } \