]> 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)
commit8f579beccb7be4795c319e4509e656eb3e6c8e49
tree0839d8bacabd03afe329facc4b119814840a82bb
parent3d8d2e57013b11e0a034ac56607c8cbf448c4f66
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