]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
s390x-syscall-patch-fix-20070326
authorNeale Ferguson <neale@sinenomine.net>
Tue, 27 Mar 2007 04:21:09 +0000 (04:21 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 27 Mar 2007 04:21:09 +0000 (04:21 +0000)
make s390x syscall table patching work correctly

src/afs/LINUX/osi_syscall.c

index 03dfcd21fdcf81fbb96d5c32d0077d78c2dbfebb..4b36b760fd61801ba36b511328d8e4c67ee9891c 100644 (file)
@@ -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; \
            } \