diff --git a/drivers/md/md.c b/drivers/md/md.c
index 498a1c2e95e9d7373da12b3f751dee3f1c3602e0..368cad6cd53a6e8f4ffe794507cf05e8191b8ff3 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -8153,7 +8153,11 @@ static void *md_seq_start(struct seq_file *seq, loff_t *pos)
 	loff_t l = *pos;
 	struct mddev *mddev;
 
-	if (l >= 0x10000)
+	if (l == 0x10000) {
+		++*pos;
+		return (void *)2;
+	}
+	if (l > 0x10000)
 		return NULL;
 	if (!l--)
 		/* header */