Skip to contentSkip to conversation

v9fs-vfs-file-dentry-and-directory-operations.patch added to -mm tree

DISCUSSION Alexey Dobriyan 1 participant 1 message Jun 6, 2005 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

fs/9p/vfs_file.c

Quoted 11 lines · On Monday 06 June 2005 10:24, [email protected] wrote:

v9fs: VFS file, dentry, and directory operations

fs/9p/vfs_file.c new file +5 -0
 
+static ssize_t
+v9fs_file_read(struct file *filp, char __user * data, size_t count,
+	       loff_t * offset)
+{
 
+	char *buffer = NULL;

Unneeded assignment.

fs/9p/vfs_file.c

Quoted 3 lines
fs/9p/vfs_file.c new file +3 -0
+	buffer = kmalloc(count, GFP_KERNEL);
+	if (buffer < 0)
+		return -ENOMEM;

buffer is a pointer.