[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190212060252.8948-1-cgxu519@gmx.com>
Date: Tue, 12 Feb 2019 14:02:52 +0800
From: Chengguang Xu <cgxu519@....com>
To: tomas.winkler@...el.com, arnd@...db.de, gregkh@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org, Chengguang Xu <cgxu519@....com>
Subject: [PATCH] mei: expand minor range when registering chrdev region
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@....com>
---
drivers/misc/mei/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c
index 87281b3695e6..3df54f1e1a8b 100644
--- a/drivers/misc/mei/main.c
+++ b/drivers/misc/mei/main.c
@@ -869,7 +869,7 @@ static const struct file_operations mei_fops = {
static struct class *mei_class;
static dev_t mei_devt;
-#define MEI_MAX_DEVS MINORMASK
+#define MEI_MAX_DEVS (MINORMASK + 1)
static DEFINE_MUTEX(mei_minor_lock);
static DEFINE_IDR(mei_idr);
--
2.20.1
Powered by blists - more mailing lists