dmaengine: idxd: fix abort status check
authorDave Jiang <dave.jiang@intel.com>
Thu, 22 Jul 2021 20:10:51 +0000 (13:10 -0700)
committerVinod Koul <vkoul@kernel.org>
Thu, 29 Jul 2021 04:13:20 +0000 (09:43 +0530)
commitb60bb6e2bfc192091b8f792781b83b5e0f9324f6
treea3d3f6e0a83f09a88a14bb36fee98e7b3fde9521
parent125d10373ad991888c9e94d2da49bcc5ccba2127
dmaengine: idxd: fix abort status check

Coverity static analysis of linux-next found issue.

The check (status == IDXD_COMP_DESC_ABORT) is always false since status
was previously masked with 0x7f and IDXD_COMP_DESC_ABORT is 0xff.

Fixes: 6b4b87f2c31a ("dmaengine: idxd: fix submission race window")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/162698465160.3560828.18173186265683415384.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/irq.c