linux-brain/drivers/misc/habanalabs
Tomer Tayar f59604786a habanalabs: Call put_pid() when releasing control device
[ Upstream commit 27ac5aada024e0821c86540ad18f37edadd77d5e ]

The refcount of the "hl_fpriv" structure is not used for the control
device, and thus hl_hpriv_put() is not called when releasing this
device.
This results with no call to put_pid(), so add it explicitly in
hl_device_release_ctrl().

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-30 14:35:22 +02:00
..
goya habanalabs: Align protection bits configuration of all TPCs 2020-07-22 09:33:05 +02:00
include habanalabs: stop using the acronym KMD 2019-09-05 14:55:27 +03:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
asid.c habanalabs: stop using the acronym KMD 2019-09-05 14:55:27 +03:00
command_buffer.c habanalabs: stop using the acronym KMD 2019-09-05 14:55:27 +03:00
command_submission.c habanalabs: rate limit error msg on waiting for CS 2020-01-12 12:21:31 +01:00
context.c habanalabs: rate limit error msg on waiting for CS 2020-01-12 12:21:31 +01:00
debugfs.c habanalabs: replace __cpu_to_le32/64 with cpu_to_le32/64 2019-09-05 14:55:27 +03:00
device.c habanalabs: Call put_pid() when releasing control device 2021-03-30 14:35:22 +02:00
firmware_if.c habanalabs: validate FW file size 2020-09-09 19:12:21 +02:00
habanalabs.h habanalabs: increase timeout during reset 2020-06-24 17:50:28 +02:00
habanalabs_drv.c habanalabs: register to pci shutdown callback 2021-01-19 18:26:14 +01:00
habanalabs_ioctl.c habanalabs: add uapi to retrieve aggregate H/W events 2019-09-05 14:55:27 +03:00
hw_queue.c habanalabs: add uapi to retrieve device utilization 2019-09-05 14:55:27 +03:00
hwmon.c habanalabs: display card name as sensors header 2019-09-05 14:55:27 +03:00
irq.c habanalabs: replace __le32_to_cpu with le32_to_cpu 2019-09-05 14:55:27 +03:00
memory.c habanalabs: check correct vmalloc return code 2020-09-09 19:12:21 +02:00
mmu.c habanalabs: check correct vmalloc return code 2020-09-09 19:12:21 +02:00
pci.c habanalabs: increase PCI ELBI timeout for Palladium 2019-05-13 14:44:50 +03:00
sysfs.c habanalabs: replace __cpu_to_le32/64 with cpu_to_le32/64 2019-09-05 14:55:27 +03:00