]> git.karo-electronics.de Git - karo-tx-linux.git/commit
configfs: use capped length for ->store_attribute()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 27 Jun 2013 23:51:01 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:15 +0000 (16:37 +1000)
commit03493789235eaa8ee969f4b348bdb6725e73a915
treed3f424ed586f2d0a44699f9151c1afc7bdc1d880
parent6cce6966f780415efa99873c833d3698daf575ad
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