samples/vfio-mdev/mbochs: expand minor range when registering chrdev region
authorChengguang Xu <cgxu519@gmx.com>
Tue, 12 Feb 2019 05:59:30 +0000 (13:59 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 12 Feb 2019 20:21:05 +0000 (13:21 -0700)
commit16355214a54efdb82a48d77b5389ee6fcc73015e
tree439c2ce79daed19dbf2b2e7521e2e99e200342d0
parent8bcb64a51065e957e170ada58cbbd766be6a9619
samples/vfio-mdev/mbochs: 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>
samples/vfio-mdev/mbochs.c