summarylogtreecommitdiffstats
path: root/01-fix-get_user_pages.patch
diff options
context:
space:
mode:
Diffstat (limited to '01-fix-get_user_pages.patch')
-rw-r--r--01-fix-get_user_pages.patch18
1 files changed, 0 insertions, 18 deletions
diff --git a/01-fix-get_user_pages.patch b/01-fix-get_user_pages.patch
deleted file mode 100644
index 90e87f14a80d..000000000000
--- a/01-fix-get_user_pages.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-diff --git a/blackmagic-12.0a14/blackmagic_lib.c b/blackmagic-12.0a14/blackmagic_lib.c.orig
-index 5494372..d1685e2 100644
---- a/blackmagic-12.0a14/blackmagic_lib.c
-+++ b/blackmagic-12.0a14/blackmagic_lib.c.orig
-@@ -676,7 +676,12 @@ dl_get_user_pages(void *task_ptr, void *ptr, unsigned long size, unsigned long *
- #else
- down_read(&current_task->mm->mmap_sem);
- #endif
--#if KERNEL_VERSION_OR_LATER(4, 10, 0)
-+#if KERNEL_VERSION_OR_LATER(5, 9, 0)
-+ if (current_task == current)
-+ ret = get_user_pages((unsigned long)ptr & PAGE_MASK, *nr_pages, write ? FOLL_WRITE : 0, pages, NULL);
-+ else
-+ ret = get_user_pages_remote(current_task->mm, (unsigned long)ptr & PAGE_MASK, *nr_pages, write ? FOLL_WRITE : 0, pages, NULL, NULL);
-+#elif KERNEL_VERSION_OR_LATER(4, 10, 0)
- if (current_task == current)
- ret = get_user_pages((unsigned long)ptr & PAGE_MASK, *nr_pages, write ? FOLL_WRITE : 0, pages, NULL);
- else