]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix same bug in .32 as .27
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 15 Sep 2010 23:34:24 +0000 (16:34 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 15 Sep 2010 23:34:24 +0000 (16:34 -0700)
queue-2.6.32/compat-make-compat_alloc_user_space-incorporate-the-access_ok.patch

index bafcc98b84c8db1ad1f7b869cb798e629e1be3f5..6922ffebee8010334ee3a401b04b78fd9d0fb496 100644 (file)
@@ -53,8 +53,8 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  arch/sparc/include/asm/compat.h   |    2 +-
  arch/x86/include/asm/compat.h     |    2 +-
  include/linux/compat.h            |    2 ++
- kernel/compat.c                   |   2+++++++++++++++++++++
- 9 files changed, 30 insertions(+), 7 deletions(-)
+ kernel/compat.c                   |   22 ++++++++++++++++++++++
+ 9 files changed, 31 insertions(+), 7 deletions(-)
 
 --- a/arch/ia64/include/asm/compat.h
 +++ b/arch/ia64/include/asm/compat.h
@@ -145,7 +145,15 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  #endif /* _LINUX_COMPAT_H */
 --- a/kernel/compat.c
 +++ b/kernel/compat.c
-@@ -1136,3 +1136,24 @@ compat_sys_sysinfo(struct compat_sysinfo
+@@ -25,6 +25,7 @@
+ #include <linux/posix-timers.h>
+ #include <linux/times.h>
+ #include <linux/ptrace.h>
++#include <linux/module.h>
+ #include <asm/uaccess.h>
+@@ -1136,3 +1137,24 @@ compat_sys_sysinfo(struct compat_sysinfo
  
        return 0;
  }