hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/block/drbd/drbd_main.c
....@@ -2819,7 +2819,7 @@
28192819
28202820 if (init_submitter(device)) {
28212821 err = ERR_NOMEM;
2822
- goto out_idr_remove_vol;
2822
+ goto out_idr_remove_from_resource;
28232823 }
28242824
28252825 add_disk(disk);
....@@ -2836,8 +2836,6 @@
28362836 drbd_debugfs_device_add(device);
28372837 return NO_ERROR;
28382838
2839
-out_idr_remove_vol:
2840
- idr_remove(&connection->peer_devices, vnr);
28412839 out_idr_remove_from_resource:
28422840 for_each_connection_safe(connection, n, resource) {
28432841 peer_device = idr_remove(&connection->peer_devices, vnr);