Re: [PATCH] iommu/amd: Fix memory leak in alloc_pci_segment()

From: Markus Elfring
Date: Thu Apr 25 2024 - 05:28:12 EST


> Fix the memory leak issue that occurs when resource allocation fails in
> alloc_pci_segment(). The dev_table, alias_table, and rlookup_table were
> introduced individually in commits 04230c119930, 99fc4ac3d297,
> and eda797a27795, but they all fail to release allocated resources
> when other allocations fail.


Please refer not only to commit hashes.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.9-rc5#n99

Would you like to extend the change description (with an enumeration)?

Regards,
Markus