diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index 6a64197f5bcef6fa4fce9e714bee6fa664e46fb7..b4b61910f616d316dc7892653535941210158aa5 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c @@ -1294,6 +1294,7 @@ static void macvtap_exit(void) class_unregister(macvtap_class); cdev_del(&macvtap_cdev); unregister_chrdev_region(macvtap_major, MACVTAP_NUM_DEVS); + idr_destroy(&minor_idr); } module_exit(macvtap_exit);