diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/genhd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c index ed926b760ca0..8acaff0154e3 100644 --- a/block/genhd.c +++ b/block/genhd.c | |||
@@ -697,7 +697,7 @@ static void *show_partition_start(struct seq_file *seqf, loff_t *pos) | |||
697 | static void *p; | 697 | static void *p; |
698 | 698 | ||
699 | p = disk_seqf_start(seqf, pos); | 699 | p = disk_seqf_start(seqf, pos); |
700 | if (!IS_ERR(p) && p) | 700 | if (!IS_ERR(p) && p && !*pos) |
701 | seq_puts(seqf, "major minor #blocks name\n\n"); | 701 | seq_puts(seqf, "major minor #blocks name\n\n"); |
702 | return p; | 702 | return p; |
703 | } | 703 | } |