Skip to content
Commit 6fc34436 authored by Tkhai Kirill's avatar Tkhai Kirill Committed by David Howells
Browse files

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: default avatarTkhai Kirill <tkhai@yandex.ru>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent c44ed965
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment