alistair23-linux/drivers/misc/habanalabs
Oded Gabbay 68b73cd158 habanalabs: patched cb equals user cb in device memset
[ Upstream commit cf01514c5c ]

During device memory memset, the driver allocates and use a CB (command
buffer). To reuse existing code, it keeps a pointer to the CB in two
variables, user_cb and patched_cb. Therefore, there is no need to "put"
both the user_cb and patched_cb, as it will cause an underflow of the
refcnt of the CB.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-03-12 13:00:11 +01:00
..
goya habanalabs: patched cb equals user cb in device memset 2020-03-12 13:00:11 +01:00
include
asid.c
command_buffer.c
command_submission.c
context.c
debugfs.c
device.c habanalabs: do not halt CoreSight during hard reset 2020-03-12 13:00:11 +01:00
firmware_if.c
habanalabs.h
habanalabs_drv.c
habanalabs_ioctl.c
hw_queue.c
hwmon.c
irq.c
Kconfig
Makefile
memory.c
mmu.c
pci.c
sysfs.c