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