misc: Fix allocation 'borrowed' by vhost_net
[safe/jmp/linux-2.6] / drivers / vhost / net.c
index 0f41c91..df5b6b9 100644 (file)
@@ -637,7 +637,7 @@ const static struct file_operations vhost_net_fops = {
 };
 
 static struct miscdevice vhost_net_misc = {
-       VHOST_NET_MINOR,
+       MISC_DYNAMIC_MINOR,
        "vhost-net",
        &vhost_net_fops,
 };