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)
commitddf742d4f3f12a6ba1b8e6ecbbf3ae736942f970
tree5d7d58c5fcb13478295dfadb1dec2cf2bf38e10a
parent9f007e7b6643799e2a6538a5fe04f51c371c6657
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: a39c7cd0438e ("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