]> Git Repo - linux.git/commit
dmaengine: idxd: add RO check for wq max_batch_size write
authorDave Jiang <[email protected]>
Mon, 11 Apr 2022 22:08:55 +0000 (15:08 -0700)
committerVinod Koul <[email protected]>
Wed, 20 Apr 2022 11:54:42 +0000 (17:24 +0530)
commit66903461ffed0b66fc3e0200082d4e09365aacdc
tree2d59a74da11d82cc161aa3aae9c4cdfc026811fe
parentbc3452cdfc468a65965d0ac397c940acb787ea4d
dmaengine: idxd: add RO check for wq max_batch_size write

Block wq_max_batch_size_store() when the device is configured as read-only
and not configurable.

Fixes: e7184b159dd3 ("dmaengine: idxd: add support for configurable max wq batch size")
Reported-by: Bernice Zhang <[email protected]>
Tested-by: Bernice Zhang <[email protected]>
Signed-off-by: Dave Jiang <[email protected]>
Link: https://lore.kernel.org/r/164971493551.2201159.1942042593642155209.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <[email protected]>
drivers/dma/idxd/sysfs.c
This page took 0.054814 seconds and 4 git commands to generate.