android_kernel_oneplus_msm8998/drivers/misc/cxl
Frederic Barrat 8fe4345d6a cxl: Fix error path on bad ioctl
commit cec422c11caeeccae709e9942058b6b644ce434c upstream.

Fix error path if we can't copy user structure on CXL_IOCTL_START_WORK
ioctl. We shouldn't unlock the context status mutex as it was not
locked (yet).

Fixes: 0712dc7e73 ("cxl: Fix issues when unmapping contexts")
Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Reviewed-by: Vaibhav Jain <vaibhav@linux.vnet.ibm.com>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-14 13:16:24 +02:00
..
api.c cxl: Fix DSI misses when the context owning task exits 2016-09-15 08:27:41 +02:00
base.c cxl: Move include file cxl.h -> cxl-base.h 2015-06-03 13:27:19 +10:00
context.c cxl: Fix DSI misses when the context owning task exits 2016-09-15 08:27:41 +02:00
cxl.h cxl: Fix DSI misses when the context owning task exits 2016-09-15 08:27:41 +02:00
debugfs.c cxl: sparse: Silence iomem warning in debugfs file creation 2015-08-12 14:49:29 +10:00
fault.c cxl: Fix DSI misses when the context owning task exits 2016-09-15 08:27:41 +02:00
file.c cxl: Fix error path on bad ioctl 2017-06-14 13:16:24 +02:00
irq.c cxl: Keep IRQ mappings on context teardown 2016-05-04 14:48:48 -07:00
Kconfig cxl: Add CONFIG_CXL_EEH symbol 2015-08-17 13:56:29 +10:00
main.c cxl: Destroy cxl_adapter_idr on module_exit 2015-07-16 14:14:55 +10:00
Makefile cxl: fix build for GCC 4.6.x 2016-09-15 08:27:41 +02:00
native.c cxl: Set endianess of kernel contexts 2015-12-08 16:57:01 +11:00
pci.c cxl: Enable PCI device ID for future IBM CXL adapter 2016-09-15 08:27:41 +02:00
sysfs.c cxl: Fix lockdep warning while creating afu_err_buff attribute 2015-09-23 20:57:13 +10:00
trace.c cxl: Add tracepoints 2015-01-22 17:31:51 +11:00
trace.h cxl: use more common format specifier 2015-07-13 10:10:54 +10:00
vphb.c cxl: use correct operator when writing pcie config space values 2016-03-03 15:07:17 -08:00