diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2021-04-02 02:00:57 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2021-04-07 20:56:43 +0300 |
commit | ffb37ca3bd16ce6ea2df2f87fde9a31e94ebb54b (patch) | |
tree | 3181f65f00970c041c87262309e5737b8139b080 /kernel/usermode_driver.c | |
parent | 4f0ed93fb92d3528c73c80317509df3f800a222b (diff) | |
download | linux-ffb37ca3bd16ce6ea2df2f87fde9a31e94ebb54b.tar.xz |
switch file_open_root() to struct path
... and provide file_open_root_mnt(), using the root of given mount.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/usermode_driver.c')
-rw-r--r-- | kernel/usermode_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/usermode_driver.c b/kernel/usermode_driver.c index 0b35212ffc3d..78353cb73836 100644 --- a/kernel/usermode_driver.c +++ b/kernel/usermode_driver.c @@ -26,7 +26,7 @@ static struct vfsmount *blob_to_mnt(const void *data, size_t len, const char *na if (IS_ERR(mnt)) return mnt; - file = file_open_root(mnt->mnt_root, mnt, name, O_CREAT | O_WRONLY, 0700); + file = file_open_root_mnt(mnt, name, O_CREAT | O_WRONLY, 0700); if (IS_ERR(file)) { mntput(mnt); return ERR_CAST(file); |