Tomer Tayar eb4154fb61 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:31:50 +02:00
..
2020-08-07 18:48:15 -07:00
2021-02-17 11:02:24 +01:00
2021-03-04 11:38:40 +01:00
2020-10-16 12:21:15 -07:00
2020-07-23 12:56:49 +02:00
2020-10-28 19:12:03 +01:00
2020-08-20 13:12:59 +02:00
2020-10-28 19:12:03 +01:00