Ryota Ozaki f623881872 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 <ozaki.ryota@gmail.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-05-29 16:22:19 -07:00
..
2012-05-22 16:02:13 -07:00
2012-05-26 12:22:27 -07:00
2012-05-26 12:42:29 -07:00
2012-05-26 13:05:55 -07:00
2012-05-08 12:35:06 +02:00
2012-05-26 12:42:29 -07:00
2012-05-23 14:07:06 -07:00
2012-05-22 16:02:13 -07:00
2012-05-29 11:53:11 -07:00
2012-05-22 16:02:13 -07:00
2012-05-23 14:15:09 -07:00
2012-05-14 13:37:45 -07:00
2012-05-29 11:53:11 -07:00
2012-05-26 12:22:27 -07:00
2012-05-23 17:08:40 -07:00
2012-05-26 12:42:29 -07:00
2012-05-29 11:53:11 -07:00
2012-05-29 11:53:11 -07:00
2012-05-26 12:42:29 -07:00
2012-05-26 12:42:29 -07:00
2012-05-15 17:30:30 -04:00
2012-05-22 16:02:13 -07:00
2012-05-07 09:56:39 +08:00
2012-05-29 11:53:11 -07:00
2012-05-29 11:53:11 -07:00
2012-05-29 11:53:11 -07:00
2012-05-26 13:05:55 -07:00
2012-05-16 12:46:37 -04:00
2012-05-29 10:42:13 -07:00
2012-05-26 12:42:29 -07:00
2012-05-26 12:42:29 -07:00
2012-05-26 12:42:29 -07:00
2012-05-29 11:53:11 -07:00
2012-05-24 16:02:08 -07:00
2012-05-22 16:34:21 -07:00
2012-05-26 12:22:27 -07:00