Skip to content

Commit d5500a0

Browse files
committed
Merge tag 'usercopy-v4.11-rc1.fix' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull usercopy test fix from Kees Cook: "Fix for non-MMU ARM testing, from Arnd Bergmann" * tag 'usercopy-v4.11-rc1.fix' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: usercopy: ARM NOMMU has no 64-bit get_user
2 parents b2e3c43 + 4deaa6f commit d5500a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/test_user_copy.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
* As there doesn't appear to be anything that can safely determine
3131
* their capability at compile-time, we just have to opt-out certain archs.
3232
*/
33-
#if BITS_PER_LONG == 64 || (!defined(CONFIG_AVR32) && \
33+
#if BITS_PER_LONG == 64 || (!(defined(CONFIG_ARM) && !defined(MMU)) && \
34+
!defined(CONFIG_AVR32) && \
3435
!defined(CONFIG_BLACKFIN) && \
3536
!defined(CONFIG_M32R) && \
3637
!defined(CONFIG_M68K) && \

0 commit comments

Comments
 (0)