OSDN Git Service

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