diff options
author | Ryota Ozaki <[email protected]> | 2012-05-29 15:06:20 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-05-29 16:22:19 -0700 |
commit | f62388187207bea83f1865d507bf892a1f9152c3 (patch) | |
tree | 734af4486b123cb15b6a5b49f37db24c74d82c5c /lib/dynamic_queue_limits.c | |
parent | 23b9da55c5b0feb484bd5e8615f4eb1ce4169453 (diff) |
mm: fix off-by-one bug in print_nodes_state()
/sys/devices/system/node/{online,possible} outputs a garbage byte
because print_nodes_state() returns content size + 1. To fix the bug,
the patch changes the use of cpuset_sprintf_cpulist to follow the use at
other places, which is clearer and safer.
This bug was introduced in v2.6.24 (commit bde631a51876: "mm: add node
states sysfs class attributeS").
Signed-off-by: Ryota Ozaki <[email protected]>
Cc: Lee Schermerhorn <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/dynamic_queue_limits.c')
0 files changed, 0 insertions, 0 deletions