Merge to Fedora kernel-2.6.18-1.2224_FC5 patched with stable patch-2.6.18.1-vs2.0...
[linux-2.6.git] / include / asm-s390 / idals.h
index 8f72c9b..e82c10e 100644 (file)
@@ -13,7 +13,6 @@
 #ifndef _S390_IDALS_H
 #define _S390_IDALS_H
 
-#include <linux/config.h>
 #include <linux/errno.h>
 #include <linux/err.h>
 #include <linux/types.h>
@@ -35,7 +34,7 @@ static inline int
 idal_is_needed(void *vaddr, unsigned int length)
 {
 #ifdef __s390x__
-       return ((__pa(vaddr) + length) >> 31) != 0;
+       return ((__pa(vaddr) + length - 1) >> 31) != 0;
 #else
        return 0;
 #endif