]> git.karo-electronics.de Git - karo-tx-linux.git/commit
configfs: use capped length for ->store_attribute()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 19 Jun 2013 00:05:36 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:46 +0000 (17:12 +1000)
commit0339028dd3b0d3b51d4eed713ead95a59434b9f9
tree0b45c69787bafbf8071e20be65645e4382ad6333
parent677515f32912afd74cfae9f6db66232c9a6f7a5f
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