]> git.karo-electronics.de Git - karo-tx-linux.git/commit
configfs: use capped length for ->store_attribute()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 23 May 2013 00:37:01 +0000 (10:37 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 27 May 2013 06:08:07 +0000 (16:08 +1000)
commitab36df3546be4547c2d48dfbbaf35ffe959c6292
tree9025c2eef4996804d97154a8de452ff061a6e087
parent687f731bd0729800d9a8a32aa327664bd9d34045
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 <dan.carpenter@oracle.com>
Acked-by: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/configfs/file.c