diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-08-16 14:30:30 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-08-21 19:15:38 +0200 |
commit | 068281d302def5efd96d84a163ba17e85f5ea564 (patch) | |
tree | f8d49d6c1e2043bcf3671504b411770a0c8c349c /arch | |
parent | PM: Remove WARN_ON from device_pm_add (diff) | |
download | linux-068281d302def5efd96d84a163ba17e85f5ea564.tar.xz linux-068281d302def5efd96d84a163ba17e85f5ea564.zip |
block: fix partial read() of /proc/{partitions,diskstats}
The proc files get truncated if they do not fit into the buffer with
a single read(). We need to move the seq_file index from the callback
of class_find_device() to the caller of class_find_device(), to keep
its value across multiple invocations of the callback.
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions