diff options
Diffstat (limited to 'drivers/firewire/core-device.c')
-rw-r--r-- | drivers/firewire/core-device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/firewire/core-device.c b/drivers/firewire/core-device.c index f3b890da1e8..4c6c7d8cdaf 100644 --- a/drivers/firewire/core-device.c +++ b/drivers/firewire/core-device.c | |||
@@ -641,6 +641,7 @@ static void fw_unit_release(struct device *dev) | |||
641 | { | 641 | { |
642 | struct fw_unit *unit = fw_unit(dev); | 642 | struct fw_unit *unit = fw_unit(dev); |
643 | 643 | ||
644 | fw_device_put(fw_parent_device(unit)); | ||
644 | kfree(unit); | 645 | kfree(unit); |
645 | } | 646 | } |
646 | 647 | ||
@@ -692,6 +693,7 @@ static void create_units(struct fw_device *device) | |||
692 | if (device_register(&unit->device) < 0) | 693 | if (device_register(&unit->device) < 0) |
693 | goto skip_unit; | 694 | goto skip_unit; |
694 | 695 | ||
696 | fw_device_get(device); | ||
695 | continue; | 697 | continue; |
696 | 698 | ||
697 | skip_unit: | 699 | skip_unit: |