|
@@ -1932,7 +1932,6 @@ static const struct file_operations vsock_device_ops = {
|
|
|
|
|
|
static struct miscdevice vsock_device = {
|
|
static struct miscdevice vsock_device = {
|
|
.name = "vsock",
|
|
.name = "vsock",
|
|
- .minor = MISC_DYNAMIC_MINOR,
|
|
|
|
.fops = &vsock_device_ops,
|
|
.fops = &vsock_device_ops,
|
|
};
|
|
};
|
|
|
|
|
|
@@ -1942,6 +1941,7 @@ static int __vsock_core_init(void)
|
|
|
|
|
|
vsock_init_tables();
|
|
vsock_init_tables();
|
|
|
|
|
|
|
|
+ vsock_device.minor = MISC_DYNAMIC_MINOR;
|
|
err = misc_register(&vsock_device);
|
|
err = misc_register(&vsock_device);
|
|
if (err) {
|
|
if (err) {
|
|
pr_err("Failed to register misc device\n");
|
|
pr_err("Failed to register misc device\n");
|