OSDN Git Service

Fix access_ok() fallout for sparc32 and powerpc
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Jan 2019 17:58:25 +0000 (09:58 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Jan 2019 17:58:25 +0000 (09:58 -0800)
commit4caf4ebfe4cf0ea262eb9e829bb254a6a6d58acc
tree0df80f621d819724a6874d39f148aa423c3e1ae3
parent96d4f267e40f9509e8a66e2b39e8b95655617693
Fix access_ok() fallout for sparc32 and powerpc

These two architectures actually had an intentional use of the 'type'
argument to access_ok() just to avoid warnings.

I had actually noticed the powerpc one, but forgot to then fix it up.
And I missed the sparc32 case entirely.

This is hopefully all of it.

Reported-by: Mathieu Malaterre <malat@debian.org>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Fixes: 96d4f267e40f ("Remove 'type' argument from access_ok() function")
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/include/asm/uaccess.h
arch/sparc/include/asm/uaccess_32.h