Skip to content
Commit 801a7605 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

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: default avatarCharley (Hao Chuan) Chu <charley.chu@broadcom.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 27b5c3f3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment