linux/drivers/misc/cxl
Vaibhav Jain a05b82d514 cxl: Fix leaking pid refs in some error paths
In some error paths in functions cxl_start_context and
afu_ioctl_start_work pid references to the current & group-leader tasks
can leak after they are taken. This patch fixes these error paths to
release these pid references before exiting the error path.

Fixes: 7b8ad495d5 ("cxl: Fix DSI misses when the context owning task exits")
Cc: stable@vger.kernel.org # v4.5+
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Reported-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Vaibhav Jain <vaibhav@linux.vnet.ibm.com>
Acked-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-10-24 11:38:27 +11:00
..
api.c cxl: Fix leaking pid refs in some error paths 2016-10-24 11:38:27 +11:00
base.c
context.c cxl: Prevent adapter reset if an active context exists 2016-10-19 20:35:39 +11:00
cxl.h cxl: Prevent adapter reset if an active context exists 2016-10-19 20:35:39 +11:00
debugfs.c
fault.c
file.c cxl: Fix leaking pid refs in some error paths 2016-10-24 11:38:27 +11:00
flash.c
guest.c cxl: Prevent adapter reset if an active context exists 2016-10-19 20:35:39 +11:00
hcalls.c
hcalls.h
irq.c
Kconfig
main.c cxl: Prevent adapter reset if an active context exists 2016-10-19 20:35:39 +11:00
Makefile
native.c cxl: Flush PSL cache before resetting the adapter 2016-10-04 16:16:42 +11:00
of.c cxl: replace loop with for_each_child_of_node(), remove unneeded of_node_put() 2016-10-04 16:19:23 +11:00
pci.c cxl: Prevent adapter reset if an active context exists 2016-10-19 20:35:39 +11:00
phb.c
sysfs.c cxl: Prevent adapter reset if an active context exists 2016-10-19 20:35:39 +11:00
trace.c
trace.h
vphb.c cxl: use pcibios_free_controller_deferred() when removing vPHBs 2016-08-22 11:09:33 +10:00