diff options
author | Dave Jiang <dave.jiang@intel.com> | 2020-03-12 09:23:53 -0700 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-03-23 11:32:06 +0530 |
commit | 988aad2f111c768c66efc87d073c73ecb32b682c (patch) | |
tree | 0ecd6588e4c4a943384889fcf041261080b7086b /net | |
parent | 195967c088aa856fc7a2698230cddef3b8d7cda9 (diff) | |
download | linux-988aad2f111c768c66efc87d073c73ecb32b682c.tar.gz linux-988aad2f111c768c66efc87d073c73ecb32b682c.tar.bz2 linux-988aad2f111c768c66efc87d073c73ecb32b682c.zip |
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: 42d279f9137a ("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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions