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

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
include
asid.c
command_buffer.c
command_submission.c
context.c
debugfs.c
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_drv.c habanalabs: register to pci shutdown callback 2021-01-19 18:26:14 +01:00
habanalabs_ioctl.c
hw_queue.c
hwmon.c
irq.c
Kconfig
Makefile
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
sysfs.c