Memory Resource Controller use strstrip while parsing arguments

The memory controller has a requirement that while writing values, we need
to use echo -n. This patch fixes the problem and makes the UI more consistent.

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: Paul Menage <menage@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Balbir Singh
2008-03-04 14:28:24 -08:00
committed by Linus Torvalds
parent a10568733c
commit fb78922ce9
2 changed files with 4 additions and 3 deletions

View File

@@ -113,6 +113,7 @@ ssize_t res_counter_write(struct res_counter *counter, int member,
ret = -EINVAL;
strstrip(buf);
if (write_strategy) {
if (write_strategy(buf, &tmp)) {
goto out_free;