2016-09-16 10:32:23 +02:00
|
|
|
Index: VirtualBox-5.1.6/src/VBox/Additions/linux/drm/vbox_ttm.c
|
2016-08-19 10:55:54 +02:00
|
|
|
===================================================================
|
2016-09-16 10:32:23 +02:00
|
|
|
--- VirtualBox-5.1.6.orig/src/VBox/Additions/linux/drm/vbox_ttm.c
|
|
|
|
+++ VirtualBox-5.1.6/src/VBox/Additions/linux/drm/vbox_ttm.c
|
|
|
|
@@ -229,7 +229,6 @@ static int vbox_bo_move(struct ttm_buffe
|
2016-08-19 10:55:54 +02:00
|
|
|
return r;
|
|
|
|
}
|
|
|
|
|
2016-09-16 10:32:23 +02:00
|
|
|
-
|
|
|
|
static void vbox_ttm_backend_destroy(struct ttm_tt *tt)
|
2016-08-19 10:55:54 +02:00
|
|
|
{
|
2016-09-16 10:32:23 +02:00
|
|
|
ttm_tt_fini(tt);
|
|
|
|
Index: VirtualBox-5.1.6/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
|
2016-08-31 09:26:51 +02:00
|
|
|
===================================================================
|
2016-09-16 10:32:23 +02:00
|
|
|
--- VirtualBox-5.1.6.orig/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
|
|
|
|
+++ VirtualBox-5.1.6/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c
|
2016-08-31 09:26:51 +02:00
|
|
|
@@ -35,7 +35,7 @@
|
|
|
|
#include <iprt/assert.h>
|
|
|
|
#include <iprt/err.h>
|
|
|
|
#include "r0drv/alloc-r0drv.h"
|
|
|
|
-
|
|
|
|
+#include <linux/kmemleak.h>
|
|
|
|
|
|
|
|
#if (defined(RT_ARCH_AMD64) || defined(DOXYGEN_RUNNING)) && !defined(RTMEMALLOC_EXEC_HEAP)
|
|
|
|
# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 23)
|
|
|
|
@@ -294,6 +294,7 @@ DECLHIDDEN(int) rtR0MemAllocEx(size_t cb
|
|
|
|
fFlags &= ~RTMEMHDR_FLAG_KMALLOC;
|
|
|
|
pHdr = vmalloc(cb + sizeof(*pHdr));
|
|
|
|
}
|
|
|
|
+ kmemleak_not_leak(pHdr);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
pHdr = vmalloc(cb + sizeof(*pHdr));
|