]> git.baikalelectronics.ru Git - kernel.git/commit
initrd: use do_mount() instead of ksys_mount()
authorDominik Brodowski <linux@dominikbrodowski.net>
Wed, 27 Nov 2019 19:24:14 +0000 (20:24 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Thu, 12 Dec 2019 13:50:03 +0000 (14:50 +0100)
commit53fe3e6045a677d51efec6d22d787283d57e23cf
tree0069801b93c9061d8b1ecc1a271c5c4168deab8e
parentb94e3f34b49a6ec311675c0b72fdf4170995f2ae
initrd: use do_mount() instead of ksys_mount()

All three calls to ksys_mount() in initrd-related kernel code can
be switched over to do_mount():
- the first and third arguments are const strings in the kernel,
  and do not need to be copied over from userspace;
- the fifth argument is NULL, and therefore no page needs to be,
  copied over from userspace;
- the second and fourth argument are passed through anyway.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
init/do_mounts_initrd.c