Commit fff5a5e7 authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm

Pull ARM fix from Russell King:
 "Just one fix for now to eliminate a KASAN false positive"

* tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm:
  ARM: 9290/1: uaccess: Fix KASAN false-positives
parents c13e02d3 ceac10c8
...@@ -116,7 +116,7 @@ __copy_to_user_memcpy(void __user *to, const void *from, unsigned long n) ...@@ -116,7 +116,7 @@ __copy_to_user_memcpy(void __user *to, const void *from, unsigned long n)
tocopy = n; tocopy = n;
ua_flags = uaccess_save_and_enable(); ua_flags = uaccess_save_and_enable();
memcpy((void *)to, from, tocopy); __memcpy((void *)to, from, tocopy);
uaccess_restore(ua_flags); uaccess_restore(ua_flags);
to += tocopy; to += tocopy;
from += tocopy; from += tocopy;
...@@ -178,7 +178,7 @@ __clear_user_memset(void __user *addr, unsigned long n) ...@@ -178,7 +178,7 @@ __clear_user_memset(void __user *addr, unsigned long n)
tocopy = n; tocopy = n;
ua_flags = uaccess_save_and_enable(); ua_flags = uaccess_save_and_enable();
memset((void *)addr, 0, tocopy); __memset((void *)addr, 0, tocopy);
uaccess_restore(ua_flags); uaccess_restore(ua_flags);
addr += tocopy; addr += tocopy;
n -= tocopy; n -= tocopy;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment