]> git.baikalelectronics.ru Git - kernel.git/commit
MN10300: Proper use of macros get_user() in the case of incremented pointers
authorTkhai Kirill <tkhai@yandex.ru>
Mon, 14 Mar 2011 13:27:46 +0000 (13:27 +0000)
committerDavid Howells <dhowells@redhat.com>
Mon, 14 Mar 2011 14:44:30 +0000 (14:44 +0000)
commit3e3a1133d135026fc8bbcee77e1d49a0dd94ea9f
treec084e9bc8ed456e504efb01ae180d9b7f02fb009
parent34e3649a82b4afc385fae05bca72924d526c3f15
MN10300: Proper use of macros get_user() in the case of incremented pointers

Using __get_user_check(x, ptr++, size) leads to double increment of pointer.
This macro uses the macro get_user directly, which itself is used in this way
(get_user(x, ptr++)) in some functions of the kernel. The patch fixes the
error.

Reported-by: Tkhai Kirill <tkhai@yandex.ru>
Signed-off-by: David Howells <dhowells@redhat.com>
arch/mn10300/include/asm/uaccess.h