Skip to contentSkip to conversation

configfs-use-capped-length-for-store_attribute.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 8, 2013 configfs

lore
Share & tools
lore
#0 lore raw

Subject: [merged] configfs-use-capped-length-for-store_attribute.patch removed from -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 08 Jul 2013 12:22:58 -0700

The patch titled

     Subject: configfs: use capped length for ->store_attribute()

has been removed from the -mm tree. Its filename was
configfs-use-capped-length-for-store_attribute.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Dan Carpenter <[email protected]>
Subject: configfs: use capped length for ->store_attribute()

The difference between "count" and "len" is that "len" is capped at 4095. Changing it like this makes it match how sysfs_write_file() is implemented.

This is a static analysis patch. I haven't found any store_attribute() functions where this change makes a difference.

---

 fs/configfs/file.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/configfs/file.c renamed from fs/configfs/file.c~configfs-use-capped-length-for-store_attribute +1 -1
diff -puN fs/configfs/file.c~configfs-use-capped-length-for-store_attribute fs/configfs/file.c
@@ -203,7 +203,7 @@ configfs_write_file(struct file *file, c
 	mutex_lock(&buffer->mutex);
 	len = fill_write_buffer(buffer, buf, count);
 	if (len > 0)
-		len = flush_write_buffer(file->f_path.dentry, buffer, count);
+		len = flush_write_buffer(file->f_path.dentry, buffer, len);
 	if (len > 0)
 		*ppos += len;
 	mutex_unlock(&buffer->mutex);

_

Patches currently in -mm which might be from [email protected] are

origin.patch
linux-next.patch fanotify-info-leak-in-copy_event_to_user.patch fs-convert-fs-shrinkers-to-new-scan-count-api-fix-fix.patch mm-vmallocc-unbreak-__vunmap.patch mwave-fix-info-leak-in-mwave_ioctl.patch lib-scatterlist-error-handling-in-__sg_alloc_table.patch