Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47887
b: refs/heads/master
c: 215122e
h: refs/heads/master
i:
  47885: 0f1fabd
  47883: 691c9f3
  47879: 51efb96
  47871: 2b28476
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Feb 12, 2007
1 parent c13cf54 commit 76f3dc1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6ab8eb1cffcc5640ca5b07c2a0ddfaa8fbbcc754
refs/heads/master: 215122e1110f97a3f478829049b9840cf8fdde57
7 changes: 7 additions & 0 deletions trunk/fs/char_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ __register_chrdev_region(unsigned int major, unsigned int baseminor,
/* temporary */
if (major == 0) {
for (i = ARRAY_SIZE(chrdevs)-1; i > 0; i--) {
/*
* Disallow the LANANA-assigned LOCAL/EXPERIMENTAL
* majors
*/
if ((60 <= i && i <= 63) || (120 <= i && i <= 127) ||
(240 <= i && i <= 254))
continue;
if (chrdevs[i] == NULL)
break;
}
Expand Down

0 comments on commit 76f3dc1

Please sign in to comment.