]> git.baikalelectronics.ru Git - kernel.git/commit
arch/openrisc: Fix issues with access_ok()
authorStafford Horne <shorne@gmail.com>
Tue, 8 Jan 2019 13:15:15 +0000 (22:15 +0900)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 9 Jan 2019 02:22:30 +0000 (18:22 -0800)
commit6cbc6ae541acd5bfb78178dd9c754fb6990cd5f4
treedb21536a3185148f4289bccf17eece5f4cbc04c8
parentee0a4582a7ef0c136ec38b7c202ed53a10f4f9c0
arch/openrisc: Fix issues with access_ok()

The commit 57c86a01540c ("make 'user_access_begin()' do 'access_ok()'")
exposed incorrect implementations of access_ok() macro in several
architectures.  This change fixes 2 issues found in OpenRISC.

OpenRISC was not properly using parenthesis for arguments and also using
arguments twice.  This patch fixes those 2 issues.

I test booted this patch with v5.0-rc1 on qemu and it's working fine.

Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/openrisc/include/asm/uaccess.h