Commit 95c26f5a authored by Linus Torvalds's avatar Linus Torvalds Committed by Linus Torvalds

Missed partition update from Al Viro

parent e1d101b1
...@@ -467,7 +467,7 @@ void devfs_register_partitions (struct gendisk *dev, int minor, int unregister) ...@@ -467,7 +467,7 @@ void devfs_register_partitions (struct gendisk *dev, int minor, int unregister)
for (part = 1; part < max_p; part++) { for (part = 1; part < max_p; part++) {
if ( unregister || (p[part].nr_sects < 1) ) { if ( unregister || (p[part].nr_sects < 1) ) {
devfs_unregister(p[part].de); devfs_unregister(p[part].de);
dev->part[p].de = NULL; p[part].de = NULL;
continue; continue;
} }
devfs_register_partition (dev, minor, part); devfs_register_partition (dev, minor, part);
......
Markdown is supported
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