linux/drivers/dma/idxd
Dave Jiang 50e7e7f6f2 dmaengine: idxd: wq size configuration needs to check global max size
The current size_store() function for idxd sysfs does not check the total
wq size. This allows configuration of all wqs with total wq size. Add check
to make sure the wq sysfs attribute rejects storing of size over the total
wq size.

Fixes: c52ca47823 ("dmaengine: idxd: add configuration component of driver")
Reported-by: Jerry Chen <jerry.t.chen@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/158213309629.2509.3583411832507185041.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2020-02-24 22:02:34 +05:30
..
cdev.c dmaengine: idxd: Fix error handling in idxd_wq_cdev_dev_setup() 2020-02-13 20:37:23 +05:30
device.c dmaengine: idxd: add char driver to expose submission portal to userland 2020-01-24 11:18:45 +05:30
dma.c dmaengine: idxd: connect idxd to dmaengine subsystem 2020-01-24 11:18:45 +05:30
idxd.h dmaengine: idxd: add char driver to expose submission portal to userland 2020-01-24 11:18:45 +05:30
init.c dmaengine: idxd: add char driver to expose submission portal to userland 2020-01-24 11:18:45 +05:30
irq.c dmaengine: idxd: add char driver to expose submission portal to userland 2020-01-24 11:18:45 +05:30
Makefile dmaengine: idxd: add char driver to expose submission portal to userland 2020-01-24 11:18:45 +05:30
registers.h dmaengine: idxd: add configuration component of driver 2020-01-24 11:18:45 +05:30
submit.c dmaengine: idxd: add char driver to expose submission portal to userland 2020-01-24 11:18:45 +05:30
sysfs.c dmaengine: idxd: wq size configuration needs to check global max size 2020-02-24 22:02:34 +05:30