linux/drivers/misc/habanalabs
Oded Gabbay 9e28c17641 habanalabs: fix memory leak with CBs with unaligned size
This patch fix a bug when a command buffer with unaligned size (with
regard to PAGE_SIZE) was used. The accounting for the unmap operation
wasn't done correctly and could result in a memory leak.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-02-28 13:06:09 +01:00
..
goya habanalabs: extend QMAN0 job timeout 2019-02-28 13:04:59 +01:00
include habanalabs: set DMA0 completion to SOB 1007 2019-02-28 13:04:59 +01:00
asid.c habanalabs: add context and ASID modules 2019-02-18 09:46:44 +01:00
command_buffer.c habanalabs: fix memory leak with CBs with unaligned size 2019-02-28 13:06:09 +01:00
command_submission.c habanalabs: add debugfs support 2019-02-18 09:46:46 +01:00
context.c habanalabs: add virtual memory and MMU modules 2019-02-18 09:46:46 +01:00
debugfs.c habanalabs: disable CPU access on timeouts 2019-02-28 13:04:59 +01:00
device.c habanalabs: disable CPU access on timeouts 2019-02-28 13:04:59 +01:00
habanalabs_drv.c habanalabs: make functions static or declare them 2019-02-27 16:00:20 +01:00
habanalabs_ioctl.c habanalabs: implement INFO IOCTL 2019-02-18 09:46:46 +01:00
habanalabs.h habanalabs: disable CPU access on timeouts 2019-02-28 13:04:59 +01:00
hw_queue.c habanalabs: add command submission module 2019-02-18 09:46:45 +01:00
hwmon.c habanalabs: disable CPU access on timeouts 2019-02-28 13:04:59 +01:00
irq.c habanalabs: add device reset support 2019-02-18 09:46:45 +01:00
Kconfig misc/habanalabs: adjust Kconfig to fix build errors 2019-02-27 16:02:19 +01:00
Makefile habanalabs: add debugfs support 2019-02-18 09:46:46 +01:00
memory.c habanalabs: add MMU DRAM default page mapping 2019-02-28 13:04:59 +01:00
mmu.c habanalabs: return correct error code on MMU mapping failure 2019-02-28 13:06:09 +01:00
sysfs.c habanalabs: disable CPU access on timeouts 2019-02-28 13:04:59 +01:00