]> git.ipfire.org Git - thirdparty/mdadm.git/commit
sysfs: reject reads that use the whole buffer.
authorNeilBrown <neilb@suse.de>
Mon, 6 Jul 2015 03:21:33 +0000 (13:21 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 6 Jul 2015 03:21:33 +0000 (13:21 +1000)
commit5418499ae48851399c280ca1986741762bd039f9
treec50767daaa45df546402618f2b3cb0c4c455af94
parentbcbb92d4ee8e90d5b97b0446a064a918cf0fcf2b
sysfs: reject reads that use the whole buffer.

If a read fills the whole buffer, then we possibly
missed something of the end, and we definitely shouldn't
put a '\0' beyond the end, so just return an error.
This should never happen anyway.

Signed-off-by: NeilBrown <neilb@suse.com>
sysfs.c