https://github.com/torvalds/linux
Revision 6fc34436be2494c6fea63dc0759be9b360d9480a authored by Tkhai Kirill on 14 March 2011, 13:27:46 UTC, committed by David Howells on 14 March 2011, 14:44:30 UTC
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>
1 parent c44ed96
History
Tip revision: 6fc34436be2494c6fea63dc0759be9b360d9480a authored by Tkhai Kirill on 14 March 2011, 13:27:46 UTC
MN10300: Proper use of macros get_user() in the case of incremented pointers
Tip revision: 6fc3443

back to top