aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
Diffstat (limited to 'block')
-rw-r--r--block/genhd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/block/genhd.c b/block/genhd.c
index 457fdac4c17d..36bd3e12a6d4 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -61,6 +61,14 @@ int register_blkdev(unsigned int major, const char *name)
61 /* temporary */ 61 /* temporary */
62 if (major == 0) { 62 if (major == 0) {
63 for (index = ARRAY_SIZE(major_names)-1; index > 0; index--) { 63 for (index = ARRAY_SIZE(major_names)-1; index > 0; index--) {
64 /*
65 * Disallow the LANANA-assigned LOCAL/EXPERIMENTAL
66 * majors
67 */
68 if ((60 <= index && index <= 63) ||
69 (120 <= index && index <= 127) ||
70 (240 <= index && index <= 254))
71 continue;
64 if (major_names[index] == NULL) 72 if (major_names[index] == NULL)
65 break; 73 break;
66 } 74 }