From: Dan Carpenter Date: Wed, 3 Jul 2013 22:00:45 +0000 (-0700) Subject: configfs: use capped length for ->store_attribute() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~17^2~440 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7121064b214bbc97007ec4d0e70aaeffef1b55f7;p=pandora-kernel.git 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. Signed-off-by: Dan Carpenter Acked-by: Joel Becker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed