]> git.baikalelectronics.ru Git - kernel.git/commit
seq_file: always clear m->count when we free m->buf
authorAl Viro <viro@ZenIV.linux.org.uk>
Tue, 19 Nov 2013 01:20:43 +0000 (01:20 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 19 Nov 2013 03:07:53 +0000 (19:07 -0800)
commitf98d098f2b01cc3b50ffa4c4d05aefb06a04f7be
tree261258d2a4f61f07f238c18ea1087fca6eea9947
parent9dba8a008690895056e400178c310f95a3234c9c
seq_file: always clear m->count when we free m->buf

Once we'd freed m->buf, m->count should become zero - we have no valid
contents reachable via m->buf.

Reported-by: Charley (Hao Chuan) Chu <charley.chu@broadcom.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/seq_file.c