diff --git a/block/genhd.c b/block/genhd.c index 3c9dede4e04f9a1f3f6c446affc68c8694b01db1..0ad879655f825789934609f45cb7d1e9840bcc78 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -856,6 +856,7 @@ static void disk_seqf_stop(struct seq_file *seqf, void *v) if (iter) { class_dev_iter_exit(iter); kfree(iter); + seqf->private = NULL; } }