Actually, total amount of available minor number for a single major is MINORMARK + 1. So expand minor range when registering chrdev region. Signed-off-by: Chengguang Xu <cgxu519@xxxxxxx> --- drivers/scsi/osd/osd_uld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/osd/osd_uld.c b/drivers/scsi/osd/osd_uld.c index eaf36ccf58db..5eb5103f4b4d 100644 --- a/drivers/scsi/osd/osd_uld.c +++ b/drivers/scsi/osd/osd_uld.c @@ -69,7 +69,7 @@ #ifndef SCSI_OSD_MAJOR # define SCSI_OSD_MAJOR 260 #endif -#define SCSI_OSD_MAX_MINOR MINORMASK +#define SCSI_OSD_MAX_MINOR (MINORMASK + 1) static const char osd_name[] = "osd"; static const char *osd_version_string = "open-osd 0.2.1"; -- 2.20.1