linux_dsm_epyc7002/drivers/dma/idxd
Dave Jiang 988aad2f11 dmaengine: idxd: fix off by one on cdev dwq refcount
The refcount check for dedicated workqueue (dwq) is off by one and allows
more than 1 user to open the char device. Fix check so only a single user
can open the device.

Fixes: 42d279f913 ("dmaengine: idxd: add char driver to expose submission portal to userland")
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/158403020187.10208.14117394394540710774.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2020-03-23 11:32:06 +05:30
..
cdev.c dmaengine: idxd: fix off by one on cdev dwq refcount 2020-03-23 11:32:06 +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