dmaengine: idxd: fix array index when int_handles are being used
authorDave Jiang <dave.jiang@intel.com>
Thu, 24 Jun 2021 19:09:29 +0000 (12:09 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 14 Jul 2021 06:57:28 +0000 (12:27 +0530)
commitda435aedb00a4ef61019ff11ae0c08ffb9b1fb18
tree91f9e8131dda7e7692265ad246eb4b55bba5d56d
parent1da569fa7ec8cb0591c74aa3050d4ea1397778b4
dmaengine: idxd: fix array index when int_handles are being used

The index to the irq vector should be local and has no relation to
the assigned interrupt handle. Assign the MSIX interrupt index that is
programmed for the descriptor. The interrupt handle only matters when it
comes to hardware descriptor programming.

Fixes: eb15e7154fbf ("dmaengine: idxd: add interrupt handle request and release support")
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/162456176939.1121476.3366256009925001897.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/submit.c