]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: idxd: sysfs input of wq incorrect wq type should return error
authorDave Jiang <dave.jiang@intel.com>
Wed, 19 Feb 2020 17:24:08 +0000 (10:24 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 24 Feb 2020 16:32:34 +0000 (22:02 +0530)
commitf00c4b54880199213ca7fcc29ca540e4934a8a30
tree440b69a1e91cf0497b8b5a488b1310337c20ad19
parent0fa3f537f959159838c74c1de35657cd59fc8c7a
dmaengine: idxd: sysfs input of wq incorrect wq type should return error

Currently when inputing an unrecognized wq type, we set the wq type to
"none". It really should return error and not change the existing wq type
that's in the kernel.

Fixes: 5c1d9d10ca7d ("dmaengine: idxd: add configuration component of driver")
Reported-by: Yixin Zhang <yixin.zhang@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/158213304803.2290.13336343633425868211.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/sysfs.c