+4
-7
drivers/firewire/core-device.c
+4
-7
drivers/firewire/core-device.c
···
717
717
fw_unit_attributes,
718
718
&unit->attribute_group);
719
719
720
-
if (device_register(&unit->device) < 0)
721
-
goto skip_unit;
722
-
723
720
fw_device_get(device);
724
-
continue;
725
-
726
-
skip_unit:
727
-
kfree(unit);
721
+
if (device_register(&unit->device) < 0) {
722
+
put_device(&unit->device);
723
+
continue;
724
+
}
728
725
}
729
726
}
730
727