Merge tag 'firewire-fixes-6.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394

Pull firewire fix from Takashi Sakamoto:
"A single patch to fix long-standing issue of memory leak at failure of
device registration for fw_unit. We rarely encounter the issue, but it
should be applied to stable releases, since it fixes inappropriate API
usage"

* tag 'firewire-fixes-6.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394:
firewire: core: fix possible memory leak in create_units()

Changed files
+4 -7
drivers
firewire
+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