dmaengine: idxd: have command status always set
authorDave Jiang <dave.jiang@intel.com>
Thu, 3 Jun 2021 18:01:37 +0000 (11:01 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 14 Jul 2021 06:50:57 +0000 (12:20 +0530)
commit53499d1fc11267e078557fc68ce943c1eb3b7a37
tree2fac2d1bb91adda3cb01f31598a5173a71b9e174
parente753a64bee753136087dfd70b37fdd199e942ea9
dmaengine: idxd: have command status always set

The cached command status is only set when the write back status is
is passed in. Move the variable set outside of the check so it is
always set.

Fixes: 0d5c10b4c84d ("dmaengine: idxd: add work queue drain support")
Reported-by: Ramesh Thomas <ramesh.thomas@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/162274329740.1822314.3443875665504707588.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/device.c