[PATCH 13/13] usermode: Pass a NULL pointer to kernel_write

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We want to start at 0 and do not care about the updated value.

Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>
---
 kernel/usermode_driver.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/kernel/usermode_driver.c b/kernel/usermode_driver.c
index 0b35212ffc3d..ff880befc5bf 100644
--- a/kernel/usermode_driver.c
+++ b/kernel/usermode_driver.c
@@ -15,7 +15,6 @@ static struct vfsmount *blob_to_mnt(const void *data, size_t len, const char *na
 	struct vfsmount *mnt;
 	struct file *file;
 	ssize_t written;
-	loff_t pos = 0;
 
 	type = get_fs_type("tmpfs");
 	if (!type)
@@ -32,7 +31,7 @@ static struct vfsmount *blob_to_mnt(const void *data, size_t len, const char *na
 		return ERR_CAST(file);
 	}
 
-	written = kernel_write(file, data, len, &pos);
+	written = kernel_write(file, data, len, NULL);
 	if (written != len) {
 		int err = written;
 		if (err >= 0)
-- 
2.28.0




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux