Wenchao Hao 4605f057aa mm/mempolicy.c: check parameters first in kernel_get_mempolicy
Previous implementatoin calls untagged_addr() before error check, while if
the error check failed and return EINVAL, the untagged_addr() call is just
useless work.

Signed-off-by: Wenchao Hao <haowenchao22@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20200801090825.5597-1-haowenchao22@gmail.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-08-12 10:57:56 -07:00
..
2020-08-09 14:10:26 -07:00
2020-04-07 10:43:41 -07:00
2020-08-12 10:57:56 -07:00
2020-08-07 10:33:50 -07:00
2020-08-07 11:33:26 -07:00
2020-06-08 11:05:55 -07:00
2020-08-07 11:33:28 -07:00
2019-09-17 15:20:17 -07:00
2020-06-04 19:06:24 -07:00