dmaengine: idxd: off by one in cleanup code
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 16 Dec 2020 08:29:46 +0000 (11:29 +0300)
committerVinod Koul <vkoul@kernel.org>
Tue, 29 Dec 2020 04:37:59 +0000 (10:07 +0530)
commitff58f7dd0c1352a01de3a40327895bd51e03de3a
tree72ff2719bb2c7086b544e36d32ec8f11e6b591b1
parent26b614fa441048a9f8e4a814c3b01756816ce7a7
dmaengine: idxd: off by one in cleanup code

The clean up is off by one so this will start at "i" and it should start
with "i - 1" and then it doesn't unregister the zeroeth elements in the
array.

Fixes: c52ca478233c ("dmaengine: idxd: add configuration component of driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/X9nFeojulsNqUSnG@mwanda
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/sysfs.c