Commit 3748b2f15b06ea1861df39d5e9693dcd6e9542b1
Committed by
Linus Torvalds
1 parent
529b73fc0a
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
procfs: fix /proc/statm
bda7bad62bc4 ("procfs: speed up /proc/pid/stat, statm") broke /proc/statm - 'text' is printed twice by mistake. Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Reported-by: Ulrich Drepper <drepper@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
fs/proc/array.c
... | ... | @@ -550,7 +550,7 @@ |
550 | 550 | seq_put_decimal_ull(m, ' ', shared); |
551 | 551 | seq_put_decimal_ull(m, ' ', text); |
552 | 552 | seq_put_decimal_ull(m, ' ', 0); |
553 | - seq_put_decimal_ull(m, ' ', text); | |
553 | + seq_put_decimal_ull(m, ' ', data); | |
554 | 554 | seq_put_decimal_ull(m, ' ', 0); |
555 | 555 | seq_putc(m, '\n'); |
556 | 556 |