summaryrefslogtreecommitdiffstats
path: root/drivers/zorro/Kconfig
diff options
context:
space:
mode:
authorGerald Schaefer <gerald.schaefer@de.ibm.com>2019-01-16 20:11:44 +0100
committerJoerg Roedel <jroedel@suse.de>2019-01-22 14:01:38 +0100
commit198bc3252ea3a45b0c5d500e6a5b91cfdd08f001 (patch)
tree79053e0523d9466fdfadab37db0ab3efeb2cf8ef /drivers/zorro/Kconfig
parentf1724c0883bb0ce93b8dcb94b53dcca3b75ac9a7 (diff)
downloadtalos-obmc-linux-198bc3252ea3a45b0c5d500e6a5b91cfdd08f001.tar.gz
talos-obmc-linux-198bc3252ea3a45b0c5d500e6a5b91cfdd08f001.zip
iommu/vt-d: Fix memory leak in intel_iommu_put_resv_regions()
Commit 9d3a4de4cb8d ("iommu: Disambiguate MSI region types") changed the reserved region type in intel_iommu_get_resv_regions() from IOMMU_RESV_RESERVED to IOMMU_RESV_MSI, but it forgot to also change the type in intel_iommu_put_resv_regions(). This leads to a memory leak, because now the check in intel_iommu_put_resv_regions() for IOMMU_RESV_RESERVED will never be true, and no allocated regions will be freed. Fix this by changing the region type in intel_iommu_put_resv_regions() to IOMMU_RESV_MSI, matching the type of the allocated regions. Fixes: 9d3a4de4cb8d ("iommu: Disambiguate MSI region types") Cc: <stable@vger.kernel.org> # v4.11+ Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/zorro/Kconfig')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud