Commit 06a9b8fe authored by Adam Kropelin's avatar Adam Kropelin Committed by Anton Blanchard

[PATCH] sd.c major number off-by-one

Fix an off-by-one error in the simplified SD_MAJOR macro which not only
botches up the sd majors but also steals away the major used by my
favorite slow-than-dirt SCSI RAID controller: cpqarray. Please, can I
have it back?
parent 5e5ac463
......@@ -58,7 +58,7 @@
* Remaining dev_t-handling stuff
*/
#define SD_MAJORS 8
#define SD_MAJOR(i) ((i) ? SCSI_DISK1_MAJOR+(i) : SCSI_DISK0_MAJOR)
#define SD_MAJOR(i) ((i) ? SCSI_DISK1_MAJOR-1+(i) : SCSI_DISK0_MAJOR)
/*
* Time out in seconds for disks and Magneto-opticals (which are slower).
......
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