Alexey Kardashevskiy 41ee7232fa powerpc/pseries/iommu: Use correct vfree for it_map
The it_map array is vzalloc'ed so use vfree() for it when creating
a huge DMA window failed for whatever reason.

While at this, write zero to it_map.

Fixes: 381ceda88c4c ("powerpc/pseries/iommu: Make use of DDW for indirect mapping")
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211020132315.2287178-3-aik@ozlabs.ru
2021-10-25 11:41:14 +11:00
..
2021-09-09 13:25:49 -07:00
2021-09-17 08:59:27 -07:00
2021-09-05 11:50:41 -07:00
2021-09-11 00:38:47 +02:00
2021-09-15 14:29:21 +02:00
2021-09-17 11:54:48 -07:00
2021-09-19 13:29:36 -07:00
2021-09-05 11:50:41 -07:00