diff options
author | Oded Gabbay <ogabbay@kernel.org> | 2022-02-02 09:36:29 +0100 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2022-02-28 13:22:04 +0100 |
commit | 9e70ac1aa7ba50f223b4784c9e19d9ee3e47e634 (patch) | |
tree | 48f52e501681267f9a1700a85c0f4d7ae2164f3f /drivers/misc | |
parent | habanalabs: fix use-after-free bug (diff) | |
download | linux-9e70ac1aa7ba50f223b4784c9e19d9ee3e47e634.tar.xz linux-9e70ac1aa7ba50f223b4784c9e19d9ee3e47e634.zip |
habanalabs: add missing include of vmalloc.h
Use of vfree(), vmalloc_user(), vmalloc() and remap_vmalloc_range()
requires this include in some architectures.
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/habanalabs/common/memory.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/habanalabs/common/memory.c b/drivers/misc/habanalabs/common/memory.c index 348daac621ee..7bd4cae87a54 100644 --- a/drivers/misc/habanalabs/common/memory.c +++ b/drivers/misc/habanalabs/common/memory.c @@ -11,6 +11,7 @@ #include <linux/uaccess.h> #include <linux/slab.h> +#include <linux/vmalloc.h> #include <linux/pci-p2pdma.h> MODULE_IMPORT_NS(DMA_BUF); |