Frederic Barrat cec422c11c cxl: Fix error path on bad ioctl
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: 0712dc7e73e5 ("cxl: Fix issues when unmapping contexts")
Cc: stable@vger.kernel.org # v3.19+
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>
2017-06-08 20:42:31 +10:00
..
2017-04-13 23:34:31 +10:00
2017-04-13 23:34:31 +10:00
2017-04-13 23:34:31 +10:00
2017-06-08 20:42:31 +10:00
2017-03-24 15:24:00 +01:00
2017-04-13 23:34:31 +10:00
2016-03-09 23:36:52 +11:00
2017-04-13 23:34:31 +10:00
2016-07-19 20:12:29 +10:00
2017-02-03 21:59:26 +11:00
2017-05-05 11:36:44 -07:00
2015-01-22 17:31:51 +11:00
2017-04-13 23:34:31 +10:00