]> git.baikalelectronics.ru Git - kernel.git/commit
exec: open code copy_string_kernel
authorChristoph Hellwig <hch@lst.de>
Thu, 4 Jun 2020 23:51:18 +0000 (16:51 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Jun 2020 02:06:26 +0000 (19:06 -0700)
commit0b767d758b8b023e2b9dde5d4e5ecfc1a9628646
tree0839d8bacabd03afe329facc4b119814840a82bb
parent9dcba18212eb4b91c154ba3afa985997214191ce
exec: open code copy_string_kernel

Currently copy_string_kernel is just a wrapper around copy_strings that
simplifies the calling conventions and uses set_fs to allow passing a
kernel pointer.  But due to the fact the we only need to handle a single
kernel argument pointer, the logic can be sigificantly simplified while
getting rid of the set_fs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Link: http://lkml.kernel.org/r/20200501104105.2621149-3-hch@lst.de
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c