Commit 0317d9ec authored by Andreas Gruenbacher's avatar Andreas Gruenbacher Committed by Philipp Reisner

drbd: Fix the maximum accepted minor device number

The maximum minor device number allowed by the kernel is (1<<20 - 1).  Reject
device numbers higher than that to earlier catch possible errors.
Signed-off-by: default avatarPhilipp Reisner <>
Signed-off-by: default avatarLars Ellenberg <>
parent 32bdb640
......@@ -137,7 +137,7 @@
#define DRBD_MINOR_NUMBER_MAX (1<<30)
#define DRBD_MINOR_NUMBER_MAX ((1 << 20) - 1)
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