... and provide file_open_root_mnt(), using the root of given mount.
Showing the changes to kernel/usermode_driver.c (1 of 11 files). Show all
Unified · Split
| @@ -26,7 +26,7 @@ static struct vfsmount *blob_to_mnt(const void *data, size_t len, const char *na · 25 unmodified lines | ||
| 26 | 26 | if (IS_ERR(mnt)) |
| 27 | 27 | return mnt; |
| 28 | 28 | |
| 29 | − file = file_open_root(mnt->mnt_root, mnt, name, O_CREAT | O_WRONLY, 0700); | |
| 29 | + file = file_open_root_mnt(mnt, name, O_CREAT | O_WRONLY, 0700); | |
| 30 | 30 | if (IS_ERR(file)) { |
| 31 | 31 | mntput(mnt); |
| 32 | 32 | return ERR_CAST(file); |