OSDN Git Service

vfio: expand minor range when registering chrdev region
authorChengguang Xu <cgxu519@gmx.com>
Tue, 12 Feb 2019 05:59:29 +0000 (13:59 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 12 Feb 2019 20:20:56 +0000 (13:20 -0700)
commit8bcb64a51065e957e170ada58cbbd766be6a9619
tree0f3439a7d5eade2b87f2ef1adfeec4666fcac9f7
parent3c8d7ef89bb8bd7d00910fa14d4dab14a8e0cf5a
vfio: 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@gmx.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio.c