kernel/arch/x86: Fix PVS V773

Fix choose_link_device_configurations() was exited
without releasing the 'link' pointer.

Change-Id: I1620e63779975305776ffad717cbe2c07f4e022f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2948
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Murai Takashi
2020-06-25 14:11:37 +00:00
committed by waddlesplash
parent 69d1697649
commit c89d626d0e
@@ -236,12 +236,14 @@ choose_link_device_configurations(acpi_module_info* acpi,
link->possible_irqs);
if (status != B_OK) {
panic("failed to read possible irqs of link device");
delete link;
return status;
}
status = read_current_irq(acpi, link->handle, link->current_irq);
if (status != B_OK) {
panic("failed to read current irq of link device");
delete link;
return status;
}