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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Aug 2021 11:32:02 +0000 (13:32 +0200)
commit1c8a2fa0600a8f685d1b23a72b46d80ef2e80d4a
tree97f81e283f87f02caa78928a110e74c624a404d3
parent84e5c5ccd6ef87b63df95986e5fe3b8436d6f851
dmaengine: idxd: fix array index when int_handles are being used

[ Upstream commit da435aedb00a4ef61019ff11ae0c08ffb9b1fb18 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/idxd/submit.c