]> git.baikalelectronics.ru Git - kernel.git/commit
init: mark __user address space on string literals
authorNamhyung Kim <namhyung@gmail.com>
Tue, 26 Oct 2010 21:22:42 +0000 (14:22 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:15 +0000 (16:52 -0700)
commitbb4a2ac94031dbef3f37643a2307414393e61b89
tree69a0ac78c9eca823a297c4b8e0810a5b1d4e3ee8
parent5da5805987f4be4eb6341cc191b9dad166446bb7
init: mark __user address space on string literals

When calling syscall service routines in kernel, some of arguments should
be user pointers but were missing __user markup on string literals.  Add
it.  Removes some sparse warnings.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Phillip Lougher <phillip@lougher.demon.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/do_mounts.c
init/do_mounts_md.c
init/do_mounts_rd.c
init/initramfs.c
init/noinitramfs.c