drbd: Fix the maximum accepted minor device number
authorAndreas Gruenbacher <agruen@linbit.com>
Wed, 13 Jul 2011 11:40:30 +0000 (13:40 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:57:54 +0000 (16:57 +0100)
commit0317d9ecbc9bac43642b4aa70e3e1106f4fd26a1
treebdda76814bc45b15e8df433eb461c8f58ead5943
parent32bdb64038ba3127245912dae2cc8a450bb1d705
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: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
include/linux/drbd_limits.h