Bug 7922
Summary: | dynamic device major number allocation conflicts with local/experimental range | ||
---|---|---|---|
Product: | File System | Reporter: | Tomas Klas (tomas.klas) |
Component: | Other | Assignee: | fs_other |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | randy.dunlap |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6.20 | Subsystem: | |
Regression: | --- | Bisected commit-id: |
Description
Tomas Klas
2007-02-02 04:38:30 UTC
I think better range for dynamic allocation are unused numbers 231-239. --- char_dev.c 2007-02-02 14:03:24.000000000 +0100 +++ char_dev1.c 2007-02-02 14:03:14.000000000 +0100 @@ -109,3 +109,3 @@ if (major == 0) { - for (i = ARRAY_SIZE(chrdevs)-1; i > 0; i--) { + for (i = 231; i <= 239; i++) { if (chrdevs[i] == NULL) I queued a patch, thanks. |