Skip to content
Snippets Groups Projects
Commit 73b2b78b authored by Yury Umanets's avatar Yury Umanets
Browse files

- fixed missed -1 in kernel_read()

parent 75fd9b7d
No related branches found
No related tags found
No related merge requests found
......@@ -200,7 +200,7 @@ ll_gns_mount_object(struct dentry *dentry, struct vfsmount *mnt)
cleanup_phase = 4;
/* read data from mount object. */
rc = kernel_read(mntinfo_fd, 0, datapage, PAGE_SIZE);
rc = kernel_read(mntinfo_fd, 0, datapage, PAGE_SIZE - 1);
if (rc < 0) {
CERROR("can't read mount object %*s/%*s data, err %d\n",
(int)dentry->d_name.len, dentry->d_name.name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment