]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv/pci: Fix possible crash when releasing DMA resources
authorFrederic Barrat <fbarrat@linux.ibm.com>
Wed, 19 Aug 2020 13:07:41 +0000 (15:07 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 20 Aug 2020 02:30:40 +0000 (12:30 +1000)
commitd1c06969d6f77a498be0651cfccf367eb14f0fd2
treec8185252e75f374b67675dfc1e2807560ed0f3c2
parent6b2d76487f2a5f0417641ad223dadc2bc3c889d8
powerpc/powernv/pci: Fix possible crash when releasing DMA resources

Fix a typo introduced during recent code cleanup, which could lead to
silently not freeing resources or an oops message (on PCI hotplug or
CAPI reset).

Only impacts ioda2, the code path for ioda1 is correct.

Fixes: 1ac365d4faf3 ("powerpc/powernv/pci: Add explicit tracking of the DMA setup state")
Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Reviewed-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200819130741.16769-1-fbarrat@linux.ibm.com
arch/powerpc/platforms/powernv/pci-ioda.c