]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: idxd: Add missing cleanup for early error out in probe call
authorDave Jiang <dave.jiang@intel.com>
Tue, 25 May 2021 19:23:37 +0000 (12:23 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 31 May 2021 04:09:14 +0000 (09:39 +0530)
commita2aed54c9290dd40640ea07b0d19cc638b7a81ae
tree5d7d58c5fcb13478295dfadb1dec2cf2bf38e10a
parenta640d045cb4b36b14cc1d1b3b33678980d62d0c3
dmaengine: idxd: Add missing cleanup for early error out in probe call

The probe call stack is missing some cleanup when things fail in the
middle. Add the appropriate cleanup routines to make sure we exit
gracefully.

Fixes: e3d9b37f7a4e ("dmaengine: idxd: removal of pcim managed mmio mapping")
Reported-by: Nikhil Rao <nikhil.rao@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/162197061707.392656.15760573520817310791.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/init.c