]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dmaengine: idxd: fix wq size store permission state
authorDave Jiang <dave.jiang@intel.com>
Wed, 7 Apr 2021 19:59:47 +0000 (12:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Apr 2021 11:13:18 +0000 (13:13 +0200)
commit05b7791c4c4aa8304368fdc55ae911f6b34e7281
tree9f589a7e2e47b6a6afe12b28944c342210234ff4
parent60673d3fd69595ebc78213cb6a1617db923d4dcf
dmaengine: idxd: fix wq size store permission state

[ Upstream commit 0fff71c5a311e1264988179f7dcc217fda15fadd ]

WQ size can only be changed when the device is disabled. Current code
allows change when device is enabled but wq is disabled. Change the check
to detect device state.

Fixes: c52ca478233c ("dmaengine: idxd: add configuration component of driver")
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/161782558755.107710.18138252584838406025.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/sysfs.c